aboutsummaryrefslogtreecommitdiff
path: root/backends/networking/browser
diff options
context:
space:
mode:
authorPeter Bozsó2016-07-21 09:29:54 +0200
committerAlexander Tkachev2016-08-24 16:07:55 +0600
commit9254df2d9614b2cc8e35a3abbdc593e54616a322 (patch)
treea839f73d6e63250bce2fc8cf4eccb0cbac92e555 /backends/networking/browser
parent772d8ee42b820a5c19a8d9a9efb215f17606fb8f (diff)
downloadscummvm-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.cpp62
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