aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlib/LexerModule.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2013-04-01 15:21:38 +1100
committernyamatongwe <devnull@localhost>2013-04-01 15:21:38 +1100
commit4a66921d736e709d59beb776e7f7bdee74e68cc3 (patch)
treeb856b74735b2a962b65ff7a9019cc0a0618e83dd /lexlib/LexerModule.cxx
parent9e1af40727591017d5d25c8a9a52af0f9bde6cd3 (diff)
downloadscintilla-mirror-4a66921d736e709d59beb776e7f7bdee74e68cc3.tar.gz
Variable not needed.
Diffstat (limited to 'lexlib/LexerModule.cxx')
-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];
}