diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2015-08-31 18:39:18 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2015-08-31 18:39:18 (GMT) |
commit | 15a87a623791bf407b3076960cdd1133c8973357 (patch) | |
tree | 79429c37931371f8efc6ca24d0370b0e99084c62 /src/resourcemgr.h | |
parent | a5bb9430fdd79cb54605368e6315f265f6f358ad (diff) | |
download | Doxygen-15a87a623791bf407b3076960cdd1133c8973357.zip Doxygen-15a87a623791bf407b3076960cdd1133c8973357.tar.gz Doxygen-15a87a623791bf407b3076960cdd1133c8973357.tar.bz2 |
Avoid using Resource::data as string, as it is not null terminated.
Diffstat (limited to 'src/resourcemgr.h')
-rw-r--r-- | src/resourcemgr.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/resourcemgr.h b/src/resourcemgr.h index 220202c..57b3e37 100644 --- a/src/resourcemgr.h +++ b/src/resourcemgr.h @@ -47,13 +47,13 @@ class ResourceMgr /** Copies a registered resource to a given target directory under a given target name */ bool copyResourceAs(const char *name,const char *targetDir,const char *targetName) const; - /** Returns a pointer to the resource object with the given name. */ - const Resource *get(const char *name) const; - /** Gets the resource data as a C string */ QCString getAsString(const char *name) const; private: + /** Returns a pointer to the resource object with the given name. */ + const Resource *get(const char *name) const; + ResourceMgr(); ~ResourceMgr(); class Private; |