Skip to content

Commit

Permalink
NULL -> nullptr
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Apr 4, 2016
1 parent ff3e1bf commit ca6ec3b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/formula/callable_objects.cpp
Expand Up @@ -528,7 +528,7 @@ void config_callable::get_inputs(std::vector<game_logic::formula_input>* inputs)
int config_callable::do_compare(const game_logic::formula_callable* callable) const
{
const config_callable* cfg_callable = dynamic_cast<const config_callable*>(callable);
if(cfg_callable == NULL) {
if(cfg_callable == nullptr) {
return formula_callable::do_compare(callable);
}

Expand Down
2 changes: 1 addition & 1 deletion src/scripting/lua_formula_bridge.cpp
Expand Up @@ -77,7 +77,7 @@ class lua_callable : public formula_callable {
}
int do_compare(const formula_callable* other) const {
const lua_callable* lua = dynamic_cast<const lua_callable*>(other);
if(lua == NULL) {
if(lua == nullptr) {
return formula_callable::do_compare(other);
}
if(mState == lua->mState) { // Which should always be the case, but let's be safe here
Expand Down
4 changes: 2 additions & 2 deletions src/scripting/lua_formula_bridge.hpp
Expand Up @@ -36,9 +36,9 @@ namespace lua_formula_bridge {
class fwrapper {
boost::shared_ptr<game_logic::formula> formula_ptr;
public:
fwrapper(const std::string& code, game_logic::function_symbol_table* functions = NULL);
fwrapper(const std::string& code, game_logic::function_symbol_table* functions = nullptr);
std::string str() const;
variant evaluate(const game_logic::formula_callable& variables, game_logic::formula_debugger* fdb = NULL) const;
variant evaluate(const game_logic::formula_callable& variables, game_logic::formula_debugger* fdb = nullptr) const;
};

} // end namespace lua_formula_bridge
Expand Down

0 comments on commit ca6ec3b

Please sign in to comment.