diff options
author | Mario J. Rugiero <mrugiero@gmail.com> | 2014-12-20 03:56:42 (GMT) |
---|---|---|
committer | Mathias Gumz <akira@fluxbox.org> | 2015-05-01 08:46:21 (GMT) |
commit | 2238c004aa8a88ef96c538597fbceb05ba7992c2 (patch) | |
tree | b1fa6995ef30354e005827303da4e1bbf19dfca1 /src/FbTk | |
parent | 2275e1e6e4571a902138afb60ed0db6396297c1a (diff) | |
download | fluxbox-2238c004aa8a88ef96c538597fbceb05ba7992c2.zip fluxbox-2238c004aa8a88ef96c538597fbceb05ba7992c2.tar.bz2 |
Reduce the scope of the variable err in stringTokensBetween.
Diffstat (limited to 'src/FbTk')
-rw-r--r-- | src/FbTk/StringUtil.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FbTk/StringUtil.hh b/src/FbTk/StringUtil.hh index b3908d8..2f7c6fc 100644 --- a/src/FbTk/StringUtil.hh +++ b/src/FbTk/StringUtil.hh | |||
@@ -98,10 +98,10 @@ static void stringTokensBetween(Container &container, const std::string &in, | |||
98 | const char *ok_chars = " \t\n", bool allow_nesting = true) { | 98 | const char *ok_chars = " \t\n", bool allow_nesting = true) { |
99 | 99 | ||
100 | std::string token; | 100 | std::string token; |
101 | int err = 0, pos = 0; | 101 | int pos = 0; |
102 | 102 | ||
103 | while (true) { | 103 | while (true) { |
104 | err = getStringBetween(token, in.c_str() + pos, first, last, ok_chars, | 104 | int err = getStringBetween(token, in.c_str() + pos, first, last, ok_chars, |
105 | allow_nesting); | 105 | allow_nesting); |
106 | if (err <= 0) | 106 | if (err <= 0) |
107 | break; | 107 | break; |