From 43670d88c91990e9f3d56adb47952887dbba05fe Mon Sep 17 00:00:00 2001 From: Aleksey Lobanov Date: Sat, 20 Jun 2015 13:53:43 +0300 Subject: [PATCH] Reduced scope of i in readGrid --- src/crossgen.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/crossgen.cpp b/src/crossgen.cpp index 7afd7f3..d87677b 100644 --- a/src/crossgen.cpp +++ b/src/crossgen.cpp @@ -30,8 +30,7 @@ void readGrid(const wxString path, GridType &grid){ grid.at(i).resize(f.GetLineCount()); wxLogDebug(wxT("Total lines: %d. First line is %s and size = %d"),f.GetLineCount(), str.c_str(),str.size()); - unsigned int i = 0; - for ( ; !f.Eof(); str = f.GetNextLine() ) { + for ( unsigned int i = 0; !f.Eof(); str = f.GetNextLine() ) { wxLogDebug(str); for (unsigned int j = 0; j < str.size(); ++j) grid.at(j).at(i) = str.at(j); @@ -163,12 +162,7 @@ void generateWordInfo(const GridType &grid, std::vector &winfos_out){ } } } -/* -template -uint32_t getWordUniq(const T &w_ind, const T &w_len){ - return w_ind + w_len * MAX_WORD_COUNT; -} -*/ + bool procCross( UsedWords used, const AllWordsType &words,