X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Floader.cpp;h=1ee6df3057ae9e7bad8e31cc0fb36ada2265ba0e;hb=daca21051927eabee098e422fe5a0990acacfb96;hp=5fd32c93fb59f403244deafa81904222f2f2a902;hpb=65b05e818baac970e08b3b50ef46d1c4be9b394d;p=libs%2Fdatafile.git 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) {