summaryrefslogtreecommitdiff
path: root/RealtimeSync/resources.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:23:48 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:23:48 +0200
commitee1c8c5c25d25dfa42120125a8a45dc9831ee412 (patch)
tree67aa287157db954e0cadeee05b4aad331eb2ecf2 /RealtimeSync/resources.h
parent5.13 (diff)
downloadFreeFileSync-ee1c8c5c25d25dfa42120125a8a45dc9831ee412.tar.gz
FreeFileSync-ee1c8c5c25d25dfa42120125a8a45dc9831ee412.tar.bz2
FreeFileSync-ee1c8c5c25d25dfa42120125a8a45dc9831ee412.zip
5.14
Diffstat (limited to 'RealtimeSync/resources.h')
-rw-r--r--RealtimeSync/resources.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/RealtimeSync/resources.h b/RealtimeSync/resources.h
index 86787f9b..623265f3 100644
--- a/RealtimeSync/resources.h
+++ b/RealtimeSync/resources.h
@@ -17,7 +17,7 @@ class GlobalResources
public:
static const GlobalResources& instance();
- static const wxBitmap& getImage(const wxString& name) { return instance().getImageInt(name); }
+ const wxBitmap& getImage(const wxString& name) const;
//image resource objects
wxIcon programIcon;
@@ -27,9 +27,10 @@ private:
GlobalResources(const GlobalResources&); //=delete
GlobalResources& operator=(const GlobalResources&); //=delete
- const wxBitmap& getImageInt(const wxString& name) const;
-
std::map<wxString, wxBitmap> bitmaps;
};
+inline
+const wxBitmap& getResourceImage(const wxString& name) { return GlobalResources::instance().getImage(name); }
+
#endif //RESOURCES_H_INCLUDED_870857342085670826521345
bgstack15