From 6171db443f0f130e23fed51f45d842840cf22e45 Mon Sep 17 00:00:00 2001 From: heckflosse Date: Sat, 1 Apr 2017 20:16:01 +0200 Subject: [PATCH] Fix warning in extprog.cc --- rtgui/extprog.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rtgui/extprog.cc b/rtgui/extprog.cc index 30e33b6b9..bdbbb85b4 100644 --- a/rtgui/extprog.cc +++ b/rtgui/extprog.cc @@ -325,9 +325,7 @@ bool ExtProgStore::openInCustomEditor (const Glib::ustring& fileName) const auto cmdLine = Glib::ustring("\"") + options.customEditorProg + Glib::ustring("\""); auto success = ShellExecute( NULL, "open", cmdLine.c_str(), fileName.c_str(), NULL, SW_SHOWNORMAL ); - if ((uintptr_t)success > 32) { - return true; - } + return (uintptr_t)success > 32; #elif defined __APPLE__