refactor(core): Clean-up

- use "#pragma once" instead of the regular include guard
- fix errors and warnings reported by cppcheck
This commit is contained in:
Michael Carlberg 2016-05-31 05:58:58 +02:00
parent d0499d4d15
commit 39d3f61497
81 changed files with 588 additions and 730 deletions
include/modules

View file

@ -1,5 +1,4 @@
#ifndef _MODULES_TEXT_HPP_
#define _MODULES_TEXT_HPP_
#pragma once
#include "modules/base.hpp"
@ -7,14 +6,12 @@ namespace modules
{
DefineModule(TextModule, StaticModule)
{
const char *FORMAT = "content";
static constexpr auto FORMAT = "content";
public:
TextModule(const std::string& name) throw(UndefinedFormat);
explicit TextModule(const std::string& name);
std::string get_format();
std::string get_output();
};
}
#endif