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:
parent
d0499d4d15
commit
39d3f61497
81 changed files with 588 additions and 730 deletions
include/modules
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue