aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2013-04-01 15:21:38 +1100
committernyamatongwe <unknown>2013-04-01 15:21:38 +1100
commitb46417feadc81a05cb90b3bb3f993d72e488af8f (patch)
treea38d92cb8b9aee8c150ed42d730252526752fa4c
parentcf6bbc7f24794d767a602d48390577eb43476f2b (diff)
downloadscintilla-mirror-b46417feadc81a05cb90b3bb3f993d72e488af8f.tar.gz
Variable not needed.
-rw-r--r--lexlib/LexerModule.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/lexlib/LexerModule.cxx b/lexlib/LexerModule.cxx
index defc86356..fc8884dc7 100644
--- a/lexlib/LexerModule.cxx
+++ b/lexlib/LexerModule.cxx
@@ -74,11 +74,9 @@ int LexerModule::GetNumWordLists() const {
}
const char *LexerModule::GetWordListDescription(int index) const {
- static const char *emptyStr = "";
-
assert(index < GetNumWordLists());
if (index >= GetNumWordLists()) {
- return emptyStr;
+ return "";
} else {
return wordListDescriptions[index];
}