From cd24ed1c6c5aab358b4f18d262bd4c00c0ebfe96 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 16 Sep 2012 19:28:16 +0300 Subject: Add const to variables with type size_t. --- src/gui/helpwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/helpwindow.cpp') diff --git a/src/gui/helpwindow.cpp b/src/gui/helpwindow.cpp index 61bd54c8c..6dbb6ec09 100644 --- a/src/gui/helpwindow.cpp +++ b/src/gui/helpwindow.cpp @@ -136,7 +136,7 @@ void HelpWindow::loadTags() it != it_end; ++ it) { const std::string &str = *it; - size_t idx = str.find('|'); + const size_t idx = str.find('|'); if (idx != std::string::npos) mTagFileMap[str.substr(idx + 1)].insert(str.substr(0, idx)); } -- cgit v1.2.3-70-g09d2