diff options
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/iteminfo.h | 2 | ||||
-rw-r--r-- | src/resources/resource.h | 2 | ||||
-rw-r--r-- | src/resources/sounddb.cpp | 2 | ||||
-rw-r--r-- | src/resources/spritedef.cpp | 2 | ||||
-rw-r--r-- | src/resources/spritedef.h | 2 | ||||
-rw-r--r-- | src/resources/wallpaper.cpp | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/src/resources/iteminfo.h b/src/resources/iteminfo.h index 7e2dd1bff..01522ef7b 100644 --- a/src/resources/iteminfo.h +++ b/src/resources/iteminfo.h @@ -295,7 +295,7 @@ class ItemInfo final Cursor::Cursor getPickupCursor() const A_WARN_UNUSED { return mPickupCursor; } - void setProtected(bool b) + void setProtected(const bool b) { mProtected = b; } bool isProtected() const diff --git a/src/resources/resource.h b/src/resources/resource.h index a60d6765c..cdcac1b8f 100644 --- a/src/resources/resource.h +++ b/src/resources/resource.h @@ -96,7 +96,7 @@ class Resource bool isProtected() const { return mProtected; } - void setNotCount(bool b) + void setNotCount(const bool b) { mNotCount = b; } #ifdef DEBUG_DUMP_LEAKS diff --git a/src/resources/sounddb.cpp b/src/resources/sounddb.cpp index 71e1a01e4..7b0d078e1 100644 --- a/src/resources/sounddb.cpp +++ b/src/resources/sounddb.cpp @@ -39,7 +39,7 @@ void SoundDB::load() unload(); XML::Document *doc = new XML::Document(paths.getStringValue("soundsFile")); - XmlNodePtr root = doc->rootNode(); + const XmlNodePtr root = doc->rootNode(); if (!root || !xmlNameEqual(root, "sounds")) { diff --git a/src/resources/spritedef.cpp b/src/resources/spritedef.cpp index 78c456878..89450486d 100644 --- a/src/resources/spritedef.cpp +++ b/src/resources/spritedef.cpp @@ -493,7 +493,7 @@ bool SpriteDef::addSequence(const int start, const int end, const int delay, const int offsetX, const int offsetY, const int variant_offset, int repeat, const int rand, - ImageSet *const imageSet, + const ImageSet *const imageSet, Animation *const animation) const { if (!imageSet || !animation) diff --git a/src/resources/spritedef.h b/src/resources/spritedef.h index 26c768776..6ef64bbae 100644 --- a/src/resources/spritedef.h +++ b/src/resources/spritedef.h @@ -163,7 +163,7 @@ class SpriteDef final : public Resource const int offsetX, const int offsetY, const int variant_offset, int repeat, const int rand, - ImageSet *const imageSet, + const ImageSet *const imageSet, Animation *const animation) const; private: diff --git a/src/resources/wallpaper.cpp b/src/resources/wallpaper.cpp index 0bbbbfa2a..513e1c8fc 100644 --- a/src/resources/wallpaper.cpp +++ b/src/resources/wallpaper.cpp @@ -93,7 +93,7 @@ void Wallpaper::loadWallpapers() { wallpaperData.clear(); initDefaultWallpaperPaths(); - char **imgs = PhysFs::enumerateFiles(wallpaperPath.c_str()); + char **const imgs = PhysFs::enumerateFiles(wallpaperPath.c_str()); for (char **i = imgs; *i; i++) { |