From 62d4077dd09ef45cb2fbf27d6d151399df31f381 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 26 Mar 2017 11:40:53 +0200 Subject: [PATCH] Fix Cppcheck warning --- lib/preprocessor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/preprocessor.cpp b/lib/preprocessor.cpp index 59267584d..b76c0fd03 100644 --- a/lib/preprocessor.cpp +++ b/lib/preprocessor.cpp @@ -48,9 +48,9 @@ static std::string trim(const std::string& s) Directive::Directive(const std::string &_file, const int _linenr, const std::string &_str): file(_file), - linenr(_linenr) + linenr(_linenr), + str(trim(_str)) { - str = trim(_str); } bool Preprocessor::missingIncludeFlag;