logic: Fixes in and with TextAccess

* fixed Textaccess removing last line with single character when loading from string
* fixed file comparison using wrong index ranges
This commit is contained in:
Eberhard Graether
2017-10-12 11:26:48 +02:00
parent c39168967f
commit b5ff43a821
3 changed files with 10 additions and 6 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ public:
* @param lastLineNumber: starts with 1
*/
std::vector<std::string> getLines(const unsigned int firstLineNumber, const unsigned int lastLineNumber);
std::vector<std::string> getAllLines() const;
const std::vector<std::string>& getAllLines() const;
std::string getText() const;
private: