Further cleanups

This commit is contained in:
Ingo Weyrich
2019-11-27 18:55:20 +01:00
parent 79431ffa1d
commit 04b08741ee
25 changed files with 38 additions and 27 deletions

View File

@@ -22,8 +22,8 @@
#include <iostream>
#ifdef WIN32
#include <windows.h>
#include <shlobj.h>
#include <shellapi.h>
#endif
#include <gtkmm.h>
@@ -261,7 +261,7 @@ bool ExtProgStore::openInGimp (const Glib::ustring& fileName)
#endif
#ifdef WIN32
if ((uintptr_t)success > 32) {
if (reinterpret_cast<uintptr_t>(success) > 32) {
return true;
}
#else
@@ -278,7 +278,7 @@ bool ExtProgStore::openInGimp (const Glib::ustring& fileName)
executable = Glib::build_filename (options.gimpDir, "bin", Glib::ustring::compose (Glib::ustring("gimp-2.%1.exe"), ver));
auto lsuccess = ShellExecute( NULL, "open", executable.c_str(), fileName.c_str(), NULL, SW_SHOWNORMAL );
if ((uintptr_t)lsuccess > 32) {
if (reinterpret_cast<uintptr_t>(lsuccess) > 32) {
return true;
}
}