summaryrefslogtreecommitdiff
path: root/wx+/image_resources.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2015-10-02 14:52:04 +0200
committerDaniel Wilhelm <daniel@wili.li>2015-10-02 14:52:04 +0200
commit1845c028b8cb8496d1d78f0da738120e1c31401a (patch)
treeadf9fb436aea09be367aef8ed3b6cdbf6a46e34c /wx+/image_resources.cpp
parent6.7 (diff)
downloadFreeFileSync-1845c028b8cb8496d1d78f0da738120e1c31401a.tar.gz
FreeFileSync-1845c028b8cb8496d1d78f0da738120e1c31401a.tar.bz2
FreeFileSync-1845c028b8cb8496d1d78f0da738120e1c31401a.zip
6.8
Diffstat (limited to 'wx+/image_resources.cpp')
-rw-r--r--wx+/image_resources.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/wx+/image_resources.cpp b/wx+/image_resources.cpp
index 09a34de0..3c471e2c 100644
--- a/wx+/image_resources.cpp
+++ b/wx+/image_resources.cpp
@@ -46,26 +46,26 @@ public:
return inst;
}
- void init(const Zstring& filename);
+ void init(const Zstring& filepath);
const wxBitmap& getImage(const wxString& name) const;
const wxAnimation& getAnimation(const wxString& name) const;
private:
GlobalResources() {}
- GlobalResources(const GlobalResources&);
- GlobalResources& operator=(const GlobalResources&);
+ GlobalResources (const GlobalResources&) = delete;
+ GlobalResources& operator=(const GlobalResources&) = delete;
std::map<wxString, wxBitmap> bitmaps;
std::map<wxString, wxAnimation> anims;
};
-void GlobalResources::init(const Zstring& filename)
+void GlobalResources::init(const Zstring& filepath)
{
assert(bitmaps.empty() && anims.empty());
- wxFFileInputStream input(utfCvrtTo<wxString>(filename));
+ wxFFileInputStream input(utfCvrtTo<wxString>(filepath));
if (input.IsOk()) //if not... we don't want to react too harsh here
{
//activate support for .png files
@@ -115,7 +115,7 @@ const wxAnimation& GlobalResources::getAnimation(const wxString& name) const
}
-void zen::initResourceImages(const Zstring& filename) { GlobalResources::instance().init(filename); }
+void zen::initResourceImages(const Zstring& filepath) { GlobalResources::instance().init(filepath); }
const wxBitmap& zen::getResourceImage(const wxString& name) { return GlobalResources::instance().getImage(name); }
bgstack15