From f510a274a01272ccba4595ae92fb38cc7294d998 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timmy=20Sj=C3=B6stedt?= Date: Sun, 30 Jun 2013 23:55:38 +0200 Subject: [PATCH] Removed whitespace from lines for the LoaderIPL --- framework/LoaderIPL.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/framework/LoaderIPL.cpp b/framework/LoaderIPL.cpp index b73553fb..57efb811 100644 --- a/framework/LoaderIPL.cpp +++ b/framework/LoaderIPL.cpp @@ -3,6 +3,7 @@ #include #include #include +#include enum SectionTypes { @@ -26,6 +27,7 @@ bool LoaderIPL::load(const std::string& filename) { std::string line; getline(str, line); + line.erase(std::find_if(line.rbegin(), line.rend(), std::not1(std::ptr_fun(std::isspace))).base(), line.end()); if(!line.empty() && line[0] == '#') {