diff options
author | Peter Bozsó | 2016-07-21 09:29:54 +0200 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | 9254df2d9614b2cc8e35a3abbdc593e54616a322 (patch) | |
tree | a839f73d6e63250bce2fc8cf4eccb0cbac92e555 /backends/networking/browser | |
parent | 772d8ee42b820a5c19a8d9a9efb215f17606fb8f (diff) | |
download | scummvm-rg350-9254df2d9614b2cc8e35a3abbdc593e54616a322.tar.gz scummvm-rg350-9254df2d9614b2cc8e35a3abbdc593e54616a322.tar.bz2 scummvm-rg350-9254df2d9614b2cc8e35a3abbdc593e54616a322.zip |
CLOUD: Fix code formatting
Diffstat (limited to 'backends/networking/browser')
-rw-r--r-- | backends/networking/browser/openurl-posix.cpp | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/backends/networking/browser/openurl-posix.cpp b/backends/networking/browser/openurl-posix.cpp index 0e56119b4f..429a379fcf 100644 --- a/backends/networking/browser/openurl-posix.cpp +++ b/backends/networking/browser/openurl-posix.cpp @@ -31,45 +31,45 @@ namespace Browser { namespace { bool launch(const Common::String client, const Common::String &url) { - // FIXME: system's input must be heavily escaped - // well, when url's specified by user - // it's OK now (urls are hardcoded somewhere in GUI) - Common::String cmd = client + " " + url; - return (system(cmd.c_str()) != -1); + // FIXME: system's input must be heavily escaped + // well, when url's specified by user + // it's OK now (urls are hardcoded somewhere in GUI) + Common::String cmd = client + " " + url; + return (system(cmd.c_str()) != -1); } } bool openUrl(const Common::String &url) { - // inspired by Qt's "qdesktopservices_x11.cpp" + // inspired by Qt's "qdesktopservices_x11.cpp" - // try "standards" - if (launch("xdg-open", url)) - return true; - if (launch(getenv("DEFAULT_BROWSER"), url)) - return true; - if (launch(getenv("BROWSER"), url)) - return true; + // try "standards" + if (launch("xdg-open", url)) + return true; + if (launch(getenv("DEFAULT_BROWSER"), url)) + return true; + if (launch(getenv("BROWSER"), url)) + return true; - // try desktop environment specific tools - if (launch("gnome-open", url)) // gnome - return true; - if (launch("kfmclient openURL", url)) // kde - return true; - if (launch("exo-open", url)) // xfce - return true; + // try desktop environment specific tools + if (launch("gnome-open", url)) // gnome + return true; + if (launch("kfmclient openURL", url)) // kde + return true; + if (launch("exo-open", url)) // xfce + return true; - // try browser names - if (launch("firefox", url)) - return true; - if (launch("mozilla", url)) - return true; - if (launch("netscape", url)) - return true; - if (launch("opera", url)) - return true; + // try browser names + if (launch("firefox", url)) + return true; + if (launch("mozilla", url)) + return true; + if (launch("netscape", url)) + return true; + if (launch("opera", url)) + return true; - warning("Networking::Browser::openUrl() (POSIX) failed to open URL"); - return false; + warning("Networking::Browser::openUrl() (POSIX) failed to open URL"); + return false; } } // End of namespace Browser |