]> git.saurik.com Git - ldid.git/commitdiff
The comment says to use a nullbuf, so let's do it! v2.1.5
authorJay Freeman (saurik) <saurik@saurik.com>
Wed, 15 Sep 2021 03:01:28 +0000 (20:01 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Wed, 15 Sep 2021 03:01:28 +0000 (20:01 -0700)
ldid.cpp

index 3411e599393651406dfe1a801ae5de4bcfd9f9ca..0d4cb735e2f6d6b8d971f2f3df87101a61c04129 100644 (file)
--- a/ldid.cpp
+++ b/ldid.cpp
@@ -2503,8 +2503,7 @@ void DiskFolder::Find(const std::string &root, const std::string &base, const Fu
 
 void DiskFolder::Save(const std::string &path, bool edit, const void *flag, const Functor<void (std::streambuf &)> &code) {
     if (!edit) {
-        // XXX: use nullbuf
-        std::stringbuf save;
+        NullBuffer save;
         code(save);
     } else {
         std::filebuf save;