]> git.lyx.org Git - features.git/blobdiff - src/support/Cache.h
Revert "WIP: refactor Systemcall"
[features.git] / src / support / Cache.h
index 2b97f6e53a882b9db1958bd5bbcd8bca638b3220..1e44ff2f8bbb01d82614f5e1e7ad187a23e07f16 100644 (file)
@@ -56,6 +56,8 @@ public:
                        return *obj;
                return Val();
        }
+       // Version that returns a pointer, and nullptr if the object is not present
+       Val * object_ptr(Key const & key) const { return Q::object(key); }
        /// Synonymous for object, same remark as above.
        Val operator[](Key const & key) const { return object(key); }
        /// Everything from QCache except QCache::take.