summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Hindenburg <[email protected]>2017-04-23 19:53:48 -0400
committerKurt Hindenburg <[email protected]>2017-04-23 19:53:48 -0400
commit374643bdfa774a53e65f6191705c160834fb069f (patch)
treed759153880d2367ac968c29f9567e8e1fe3ea137
parentb92d563cd3f15d70474bcade6a423e529c035664 (diff)
initialize variables
-rw-r--r--src/TerminalDisplayAccessible.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/TerminalDisplayAccessible.cpp b/src/TerminalDisplayAccessible.cpp
index fd1258e..41138b5 100644
--- a/src/TerminalDisplayAccessible.cpp
+++ b/src/TerminalDisplayAccessible.cpp
@@ -59,10 +59,10 @@ void TerminalDisplayAccessible::selection(int selectionIndex, int* startOffset,
if ((display()->screenWindow() == nullptr) || (selectionIndex != 0))
return;
- int startLine;
- int startColumn;
- int endLine;
- int endColumn;
+ int startLine = 0;
+ int startColumn = 0;
+ int endLine = 0;
+ int endColumn = 0;
display()->screenWindow()->getSelectionStart(startColumn, startLine);
display()->screenWindow()->getSelectionEnd(endColumn, endLine);
if ((startLine == endLine) && (startColumn == endColumn))
@@ -76,10 +76,10 @@ int TerminalDisplayAccessible::selectionCount() const
if (display()->screenWindow() == nullptr)
return 0;
- int startLine;
- int startColumn;
- int endLine;
- int endColumn;
+ int startLine = 0;
+ int startColumn = 0;
+ int endLine = 0;
+ int endColumn = 0;
display()->screenWindow()->getSelectionStart(startColumn, startLine);
display()->screenWindow()->getSelectionEnd(endColumn, endLine);
return ((startLine == endLine) && (startColumn == endColumn)) ? 0 : 1;