diff options
author | Mathias Gumz <akira@fluxbox.org> | 2015-01-16 09:52:00 (GMT) |
---|---|---|
committer | Mathias Gumz <akira@fluxbox.org> | 2015-01-16 09:52:00 (GMT) |
commit | 772ec145952bfddc7888504f22859df1f24f8d5e (patch) | |
tree | 58356cf14f52792db6fda3c482a5b9865f711e56 /src/FbTk/TypeAhead.hh | |
parent | e37cad714c77b24e4421f5dc1b3d01fe685b637a (diff) | |
download | fluxbox-772ec145952bfddc7888504f22859df1f24f8d5e.zip fluxbox-772ec145952bfddc7888504f22859df1f24f8d5e.tar.bz2 |
Fix uninitialized variables; cosmetics
Note: I expect only modern compilers will hit the source of fluxbox. It
seems futile to guard stdlib headers while demanding <algorithm> etc. This
should trim down the noise in the source quite a bit.
Diffstat (limited to 'src/FbTk/TypeAhead.hh')
-rw-r--r-- | src/FbTk/TypeAhead.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/FbTk/TypeAhead.hh b/src/FbTk/TypeAhead.hh index 289587a..119e3af 100644 --- a/src/FbTk/TypeAhead.hh +++ b/src/FbTk/TypeAhead.hh | |||
@@ -72,6 +72,8 @@ public: | |||
72 | typedef std::vector < SearchResult > SearchResults; | 72 | typedef std::vector < SearchResult > SearchResults; |
73 | typedef typename Items::const_iterator ItemscIt; | 73 | typedef typename Items::const_iterator ItemscIt; |
74 | 74 | ||
75 | TypeAhead() : m_ref(0) { } | ||
76 | |||
75 | void init(Items const &items) { m_ref = &items; } | 77 | void init(Items const &items) { m_ref = &items; } |
76 | 78 | ||
77 | size_t stringSize() const { return m_searchstr.size(); } | 79 | size_t stringSize() const { return m_searchstr.size(); } |