From aa7afee1047a2de790a70dceda9079c8d5d01850 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sun, 9 Nov 2014 12:00:22 +0100 Subject: Removed unnecessary `inline` declarations * e.g. member functions defined in the class definition are implicitly marked `inline` --- src/support/error/error_multiplexer.cc | 4 ++-- src/support/filesystem_context.cc | 2 +- src/support/include_entity_resolver.cc | 4 ++-- src/support/xerces_string_guard.h | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/support') diff --git a/src/support/error/error_multiplexer.cc b/src/support/error/error_multiplexer.cc index bbf0e71..78f0a4b 100644 --- a/src/support/error/error_multiplexer.cc +++ b/src/support/error/error_multiplexer.cc @@ -14,7 +14,7 @@ namespace { using InputXSLT::XercesStringGuard; using InputXSLT::ErrorMultiplexer; -inline std::string getMessage(const xercesc::SAXParseException& exception) { +std::string getMessage(const xercesc::SAXParseException& exception) { return ( std::string(*XercesStringGuard(exception.getMessage())) + ". (Occurred in entity '" @@ -27,7 +27,7 @@ inline std::string getMessage(const xercesc::SAXParseException& exception) { ); } -inline ErrorMultiplexer::error_type toErrorType( +ErrorMultiplexer::error_type toErrorType( const xalan::ProblemListenerBase::eClassification classification) { switch ( classification ) { case xalan::ProblemListenerBase::eClassification::eMessage || diff --git a/src/support/filesystem_context.cc b/src/support/filesystem_context.cc index b726f1b..5221188 100644 --- a/src/support/filesystem_context.cc +++ b/src/support/filesystem_context.cc @@ -9,7 +9,7 @@ namespace { const std::string workingDirectory("."); -inline boost::filesystem::path determineBasePath( +boost::filesystem::path determineBasePath( const boost::filesystem::path& path) { const boost::filesystem::path basePath( boost::filesystem::is_directory(path) ? path : path.parent_path() diff --git a/src/support/include_entity_resolver.cc b/src/support/include_entity_resolver.cc index 197b217..c628258 100644 --- a/src/support/include_entity_resolver.cc +++ b/src/support/include_entity_resolver.cc @@ -15,8 +15,8 @@ boost::optional extractFilePath( const std::size_t closingDelimiter = rawPath.find_last_of(']'); if ( leadingDelimiter != std::string::npos && - closingDelimiter != std::string::npos && - leadingDelimiter < closingDelimiter ) { + closingDelimiter != std::string::npos && + leadingDelimiter < closingDelimiter ) { return boost::make_optional( boost::filesystem::path( rawPath.substr( diff --git a/src/support/xerces_string_guard.h b/src/support/xerces_string_guard.h index 7b9517a..9c35449 100644 --- a/src/support/xerces_string_guard.h +++ b/src/support/xerces_string_guard.h @@ -28,7 +28,7 @@ class XercesStringGuard { ); } - inline const Type* operator*() const { + const Type* operator*() const { return this->string_; } -- cgit v1.2.3