summaryrefslogtreecommitdiffstats
path: root/labb5/src/Boggle.h
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2020-12-01 16:15:03 +0100
committerGustav Sörnäs <gustav@sornas.net>2020-12-01 16:15:03 +0100
commitf6a8c542e8b2083df9a5815c1ba2c109cfebf05c (patch)
treee914fde6f410043f53b151152f5a130cc68209eb /labb5/src/Boggle.h
parent93c6b29368d1e0487937b433bc6e678da0058055 (diff)
downloadtddd86-f6a8c542e8b2083df9a5815c1ba2c109cfebf05c.tar.gz
const &
Diffstat (limited to 'labb5/src/Boggle.h')
-rwxr-xr-xlabb5/src/Boggle.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/labb5/src/Boggle.h b/labb5/src/Boggle.h
index 8f68e92..95dd0b7 100755
--- a/labb5/src/Boggle.h
+++ b/labb5/src/Boggle.h
@@ -106,8 +106,8 @@ private:
const int MIN_WORD_LENGTH = 4;
static const int BOARD_SIZE = 4;
- void find_all_words_helper(set<string>& words, point cur_point, string cur_word, set<point> visited) const;
- bool find_single_word_helper(const string& word, point cur_point, string cur_word, set<point> visited) const;
+ void find_all_words_helper(set<string>& words, const point& cur_point, const string& cur_word, set<point>& visited) const;
+ bool find_single_word_helper(const string& word, const point& cur_point, const string& cur_word, set<point>& visited) const;
Lexicon dictionary;
Grid<char> board;