Commit 374643bd authored by Kurt Hindenburg's avatar Kurt Hindenburg

initialize variables

parent b92d563c
...@@ -59,10 +59,10 @@ void TerminalDisplayAccessible::selection(int selectionIndex, int* startOffset, ...@@ -59,10 +59,10 @@ void TerminalDisplayAccessible::selection(int selectionIndex, int* startOffset,
if ((display()->screenWindow() == nullptr) || (selectionIndex != 0)) if ((display()->screenWindow() == nullptr) || (selectionIndex != 0))
return; return;
int startLine; int startLine = 0;
int startColumn; int startColumn = 0;
int endLine; int endLine = 0;
int endColumn; int endColumn = 0;
display()->screenWindow()->getSelectionStart(startColumn, startLine); display()->screenWindow()->getSelectionStart(startColumn, startLine);
display()->screenWindow()->getSelectionEnd(endColumn, endLine); display()->screenWindow()->getSelectionEnd(endColumn, endLine);
if ((startLine == endLine) && (startColumn == endColumn)) if ((startLine == endLine) && (startColumn == endColumn))
...@@ -76,10 +76,10 @@ int TerminalDisplayAccessible::selectionCount() const ...@@ -76,10 +76,10 @@ int TerminalDisplayAccessible::selectionCount() const
if (display()->screenWindow() == nullptr) if (display()->screenWindow() == nullptr)
return 0; return 0;
int startLine; int startLine = 0;
int startColumn; int startColumn = 0;
int endLine; int endLine = 0;
int endColumn; int endColumn = 0;
display()->screenWindow()->getSelectionStart(startColumn, startLine); display()->screenWindow()->getSelectionStart(startColumn, startLine);
display()->screenWindow()->getSelectionEnd(endColumn, endLine); display()->screenWindow()->getSelectionEnd(endColumn, endLine);
return ((startLine == endLine) && (startColumn == endColumn)) ? 0 : 1; return ((startLine == endLine) && (startColumn == endColumn)) ? 0 : 1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment