]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/packsource.cpp
Use nullptr instead of 0 for pointers
[libs/datafile.git] / source / packsource.cpp
index b2fb17abc5ae9393feabf2f223130b547a3c072e..4a0bb15e1a34554be1ef6668537081da716c589c 100644 (file)
@@ -51,7 +51,7 @@ void PackSource::add_pack_file(const string &fn)
 
 void PackSource::add_pack_file(const string &fn, const string &filter)
 {
-       add_pack(0, fn, filter);
+       add_pack(nullptr, fn, filter);
 }
 
 void PackSource::add_pack_io(IO::Seekable &io, const string &fn)
@@ -155,7 +155,7 @@ IO::Seekable *PackSource::open(const string &fn) const
        if(i!=files.end())
                return i->second->open().release();
 
-       return 0;
+       return nullptr;
 }