]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/loader.cpp
Use nullptr instead of 0 for pointers
[libs/datafile.git] / source / loader.cpp
index 5fd32c93fb59f403244deafa81904222f2f2a902..1ee6df3057ae9e7bad8e31cc0fb36ada2265ba0e 100644 (file)
@@ -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)
        {