diff options
author | nyamatongwe <devnull@localhost> | 2001-04-11 03:48:58 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2001-04-11 03:48:58 +0000 |
commit | ea865562d206c70d7d1e2a200ce6c355ddbeb248 (patch) | |
tree | 40e117fea580b426bbc27a1d685d702779869c1d | |
parent | 80572986104bce5f4b4aadb3876eaf97a199b7bf (diff) | |
download | scintilla-mirror-ea865562d206c70d7d1e2a200ce6c355ddbeb248.tar.gz |
Avoided warnings on VC++ Pro.
-rw-r--r-- | src/PropSet.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/PropSet.cxx b/src/PropSet.cxx index 465f5f680..2f8da6d8b 100644 --- a/src/PropSet.cxx +++ b/src/PropSet.cxx @@ -152,8 +152,7 @@ SString PropSet::GetExpanded(const char *key) { SString val = Get(key); if (IncludesVar(val.c_str(), key)) return val; - else - return Expand(val.c_str()); + return Expand(val.c_str()); } SString PropSet::Expand(const char *withvars) { @@ -185,8 +184,7 @@ int PropSet::GetInt(const char *key, int defaultValue) { SString val = GetExpanded(key); if (val.length()) return val.value(); - else - return defaultValue; + return defaultValue; } bool isprefix(const char *target, const char *prefix) { |