diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:19:49 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:19:49 +0200 |
commit | c8e0e909b4a8d18319fc65434a10dc446434817c (patch) | |
tree | eee91e7d2ce229dd043811eae8f1e2bd78061916 /lib/resources.cpp | |
parent | 5.2 (diff) | |
download | FreeFileSync-c8e0e909b4a8d18319fc65434a10dc446434817c.tar.gz FreeFileSync-c8e0e909b4a8d18319fc65434a10dc446434817c.tar.bz2 FreeFileSync-c8e0e909b4a8d18319fc65434a10dc446434817c.zip |
5.3
Diffstat (limited to 'lib/resources.cpp')
-rw-r--r-- | lib/resources.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/resources.cpp b/lib/resources.cpp index f5def2c6..3ae24d1d 100644 --- a/lib/resources.cpp +++ b/lib/resources.cpp @@ -64,21 +64,21 @@ GlobalResources::GlobalResources() const wxString name = entry->GetName(); //generic image loading - if (name.EndsWith(wxT(".png"))) + if (name.EndsWith(L".png")) bitmaps.insert(std::make_pair(name, wxImage(resourceFile, wxBITMAP_TYPE_PNG))); - //else if (name == wxT("money.gif")) + //else if (name == L"money.gif") // loadAnimFromZip(resourceFile, animationMoney); - else if (name == wxT("working.gif")) + else if (name == L"working.gif") loadAnimFromZip(resourceFile, animationSync); } } #ifdef FFS_WIN //for compatibility it seems we need to stick with a "real" icon - programIcon = wxIcon(wxT("A_PROGRAM_ICON")); + programIcon = wxIcon(L"A_PROGRAM_ICON"); #else //use big logo bitmap for better quality - programIcon.CopyFromBitmap(getImageInt(wxT("FreeFileSync.png"))); + programIcon.CopyFromBitmap(getImageInt(L"FreeFileSync.png")); //attention: this is the reason we need a member getImage -> it must not implicitly create static object instance!!! //erroneously calling static object constructor twice will deadlock on Linux!! #endif @@ -87,8 +87,8 @@ GlobalResources::GlobalResources() const wxBitmap& GlobalResources::getImageInt(const wxString& imageName) const { - auto iter = bitmaps.find(imageName.Find(L'.') == wxNOT_FOUND ? //assume .png ending if nothing else specified - imageName + wxT(".png") : + auto iter = bitmaps.find(!contains(imageName, L'.') ? //assume .png ending if nothing else specified + imageName + L".png" : imageName); if (iter != bitmaps.end()) return iter->second; |