Commit 8d7c2b2c authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Make the function const to signal it does not change anything in the object

parent e8c7e8aa
...@@ -1245,7 +1245,7 @@ QHash<QRect, RegionText> TextPagePrivate::makeWordFromCharacters() ...@@ -1245,7 +1245,7 @@ QHash<QRect, RegionText> TextPagePrivate::makeWordFromCharacters()
/** /**
* Create Lines from the words and sort them * Create Lines from the words and sort them
*/ */
void TextPagePrivate::makeAndSortLines(const TextList &wordsTmp, SortedTextList *lines, LineRect *line_rects) void TextPagePrivate::makeAndSortLines(const TextList &wordsTmp, SortedTextList *lines, LineRect *line_rects) const
{ {
/** /**
* We cannot assume that the generator will give us texts in the right order. * We cannot assume that the generator will give us texts in the right order.
......
...@@ -85,7 +85,7 @@ class TextPagePrivate ...@@ -85,7 +85,7 @@ class TextPagePrivate
/** /**
* Create lines from TextList and sort them according to their position * Create lines from TextList and sort them according to their position
*/ */
void makeAndSortLines(const TextList &words, SortedTextList *lines, LineRect *line_rects); void makeAndSortLines(const TextList &words, SortedTextList *lines, LineRect *line_rects) const;
/** /**
* Caluclate statistical info like, word spacing, column spacing, line spacing from the Lines * Caluclate statistical info like, word spacing, column spacing, line spacing from the Lines
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment