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

View File

@ -1,5 +1,4 @@
#ifndef _MODULES_SCRIPT_HPP_
#define _MODULES_SCRIPT_HPP_
#pragma once
#include "modules/base.hpp"
#include "services/command.hpp"
@ -8,7 +7,7 @@ namespace modules
{
DefineModule(ScriptModule, TimerModule)
{
const char *TAG_OUTPUT = "<output>";
static constexpr auto TAG_OUTPUT = "<output>";
std::unique_ptr<Builder> builder;
@ -25,12 +24,10 @@ namespace modules
protected:
public:
ScriptModule(const std::string& name);
explicit ScriptModule(const std::string& name);
bool update();
bool build(Builder *builder, const std::string& tag);
std::string get_output();
};
}
#endif