diff options
author | Alexander Tkachev | 2016-07-21 11:44:36 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | 438ba985a4a97a8695a6e6fdda6930694976c07b (patch) | |
tree | 066e589b809278ff2e06df31069f8ea3fb6989d7 /backends/networking/sdl_net/handlers | |
parent | 01161ae7ddbc5f147dd9e71991eb2f1a1c9a7b06 (diff) | |
download | scummvm-rg350-438ba985a4a97a8695a6e6fdda6930694976c07b.tar.gz scummvm-rg350-438ba985a4a97a8695a6e6fdda6930694976c07b.tar.bz2 scummvm-rg350-438ba985a4a97a8695a6e6fdda6930694976c07b.zip |
JANITORIAL: Remove spaces at the end of the line
I knew there were some, but I wanted to fix them once, instead of doing
it all the time.
Diffstat (limited to 'backends/networking/sdl_net/handlers')
7 files changed, 9 insertions, 9 deletions
diff --git a/backends/networking/sdl_net/handlers/downloadfilehandler.cpp b/backends/networking/sdl_net/handlers/downloadfilehandler.cpp index ff45517979..20577de951 100644 --- a/backends/networking/sdl_net/handlers/downloadfilehandler.cpp +++ b/backends/networking/sdl_net/handlers/downloadfilehandler.cpp @@ -67,9 +67,9 @@ void DownloadFileHandler::handle(Client &client) { GetClientHandler *handler = new GetClientHandler(stream); handler->setResponseCode(200); - handler->setHeader("Content-Type", "application/force-download"); + handler->setHeader("Content-Type", "application/force-download"); handler->setHeader("Content-Disposition", "attachment; filename=\"" + node->getDisplayName() + "\""); - handler->setHeader("Content-Transfer-Encoding", "binary"); + handler->setHeader("Content-Transfer-Encoding", "binary"); client.setHandler(handler); } diff --git a/backends/networking/sdl_net/handlers/filesajaxpagehandler.cpp b/backends/networking/sdl_net/handlers/filesajaxpagehandler.cpp index df4482166a..7d48458d5e 100644 --- a/backends/networking/sdl_net/handlers/filesajaxpagehandler.cpp +++ b/backends/networking/sdl_net/handlers/filesajaxpagehandler.cpp @@ -53,7 +53,7 @@ void FilesAjaxPageHandler::handle(Client &client) { HandlerUtils::setFilesManagerErrorMessageHandler(client, _("The page is not available without the resources.")); return; } - + Common::String response = HandlerUtils::readEverythingFromStream(stream); Common::String path = client.queryParameter("path"); diff --git a/backends/networking/sdl_net/handlers/filesbasehandler.cpp b/backends/networking/sdl_net/handlers/filesbasehandler.cpp index d4b5c3b9e8..9546c5c845 100644 --- a/backends/networking/sdl_net/handlers/filesbasehandler.cpp +++ b/backends/networking/sdl_net/handlers/filesbasehandler.cpp @@ -45,7 +45,7 @@ Common::String FilesBaseHandler::parentPath(Common::String path) { } bool FilesBaseHandler::transformPath(Common::String &path, Common::String &prefixToRemove, Common::String &prefixToAdd, bool isDirectory) { - // <path> is not empty, but could lack the trailing slash + // <path> is not empty, but could lack the trailing slash if (isDirectory && path.lastChar() != '/' && path.lastChar() != '\\') path += '/'; if (path.hasPrefix("/root")) { diff --git a/backends/networking/sdl_net/handlers/filespagehandler.cpp b/backends/networking/sdl_net/handlers/filespagehandler.cpp index 2e934a31c6..d3fa459aeb 100644 --- a/backends/networking/sdl_net/handlers/filespagehandler.cpp +++ b/backends/networking/sdl_net/handlers/filespagehandler.cpp @@ -66,7 +66,7 @@ Common::String getDisplayPath(Common::String s) { } void FilesPageHandler::handle(Client &client) { - Common::String response = + Common::String response = "<html>" \ "<head><title>ScummVM</title></head>" \ "<body>" \ @@ -97,7 +97,7 @@ void FilesPageHandler::handle(Client &client) { Common::String path = client.queryParameter("path"); Common::String content = ""; - + // show an error message if failed to list directory if (!listDirectory(path, content, itemTemplate)) { HandlerUtils::setFilesManagerErrorMessageHandler(client, _("ScummVM couldn't list the directory you specified.")); diff --git a/backends/networking/sdl_net/handlers/listajaxhandler.cpp b/backends/networking/sdl_net/handlers/listajaxhandler.cpp index 6319485e3d..2e2e138fd6 100644 --- a/backends/networking/sdl_net/handlers/listajaxhandler.cpp +++ b/backends/networking/sdl_net/handlers/listajaxhandler.cpp @@ -116,7 +116,7 @@ void ListAjaxHandler::addItem(Common::JSONArray &responseItemsList, ItemType ite default: icon = "unk.png"; } - Common::JSONObject item; + Common::JSONObject item; item.setVal("name", new Common::JSONValue(name)); item.setVal("path", new Common::JSONValue(path)); item.setVal("isDirectory", new Common::JSONValue(isDirectory)); diff --git a/backends/networking/sdl_net/handlers/uploadfilehandler.cpp b/backends/networking/sdl_net/handlers/uploadfilehandler.cpp index e2f6143474..5642e3f948 100644 --- a/backends/networking/sdl_net/handlers/uploadfilehandler.cpp +++ b/backends/networking/sdl_net/handlers/uploadfilehandler.cpp @@ -59,7 +59,7 @@ void UploadFileHandler::handle(Client &client) { HandlerUtils::setFilesManagerErrorMessageHandler(client, _("Can't upload into a file!")); return; } - + // if all OK, set special handler client.setHandler(new UploadFileClientHandler(path)); } diff --git a/backends/networking/sdl_net/handlers/uploadfilehandler.h b/backends/networking/sdl_net/handlers/uploadfilehandler.h index bba7fdfc02..4cd6115182 100644 --- a/backends/networking/sdl_net/handlers/uploadfilehandler.h +++ b/backends/networking/sdl_net/handlers/uploadfilehandler.h @@ -29,7 +29,7 @@ namespace Networking { class UploadFileHandler: public FilesBaseHandler { void handle(Client &client); - + public: UploadFileHandler(); virtual ~UploadFileHandler(); |