From 769cd4503dcc62927805ced246090b14a78264e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 1 Sep 2012 10:32:27 +0200 Subject: [PATCH] Preprocessor: Made function static after self-check suggestion --- lib/preprocessor.cpp | 2 +- lib/preprocessor.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/preprocessor.cpp b/lib/preprocessor.cpp index 61ad4a6eb..cd5d3e728 100644 --- a/lib/preprocessor.cpp +++ b/lib/preprocessor.cpp @@ -210,7 +210,7 @@ std::string Preprocessor::read(std::istream &istr, const std::string &filename) return result; } -std::string Preprocessor::preprocessCleanupDirectives(const std::string &processedFile) const +std::string Preprocessor::preprocessCleanupDirectives(const std::string &processedFile) { std::ostringstream code; std::istringstream sstr(processedFile); diff --git a/lib/preprocessor.h b/lib/preprocessor.h index 26f4c3da6..5c7807f32 100644 --- a/lib/preprocessor.h +++ b/lib/preprocessor.h @@ -183,7 +183,7 @@ protected: * clean up #-preprocessor lines (only) * @param processedFile The data to be processed */ - std::string preprocessCleanupDirectives(const std::string &processedFile) const; + static std::string preprocessCleanupDirectives(const std::string &processedFile); /** * Returns the string between double quote characters or \< \> characters.