X-Git-Url: http://git.tdb.fi/?p=libs%2Fdatafile.git;a=blobdiff_plain;f=source%2Floader.cpp;fp=source%2Floader.cpp;h=1ee6df3057ae9e7bad8e31cc0fb36ada2265ba0e;hp=5fd32c93fb59f403244deafa81904222f2f2a902;hb=daca21051927eabee098e422fe5a0990acacfb96;hpb=9d0291952255969770e4978a0fe9e7e4839359c8 diff --git a/source/loader.cpp b/source/loader.cpp index 5fd32c9..1ee6df3 100644 --- a/source/loader.cpp +++ b/source/loader.cpp @@ -48,8 +48,8 @@ namespace Msp { namespace DataFile { Loader::Loader(): - actions(0), - cur_st(0), + actions(nullptr), + cur_st(nullptr), direct(false), check_sub_loads(false) { } @@ -212,7 +212,7 @@ bool Loader::has_action(const StatementKey &key) const LoaderAction *Loader::find_action(const StatementKey &key) const { if(!actions) - return 0; + return nullptr; auto begin = actions->lower_bound(StatementKey(key.keyword, string())); auto end = actions->upper_bound(StatementKey(key.keyword, "~")); @@ -220,7 +220,7 @@ LoaderAction *Loader::find_action(const StatementKey &key) const if(begin==end) throw unknown_keyword(key.keyword); - LoaderAction *act = 0; + LoaderAction *act = nullptr; int match = 0; for(auto i=begin; i!=end; ++i) {