summaryrefslogtreecommitdiff
path: root/src/lib/internet.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-04-03 00:04:31 +0200
committerCarl Hetherington <cth@carlh.net>2022-04-03 23:25:19 +0200
commitd311043bf3c1e3e7f41b314f7ab7c91ed7e5aa7f (patch)
treeab41f58144bda078f96ce23f6328bd36cbd18dc6 /src/lib/internet.cc
parent8c39f950ec8f8b3cf4d258279ab499d7e71dafc8 (diff)
C++11 and whitespace cleanups.
Diffstat (limited to 'src/lib/internet.cc')
-rw-r--r--src/lib/internet.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/internet.cc b/src/lib/internet.cc
index 121d3524c..c0c8232ee 100644
--- a/src/lib/internet.cc
+++ b/src/lib/internet.cc
@@ -19,10 +19,10 @@
*/
-#include "scoped_temporary.h"
#include "compose.hpp"
-#include "exceptions.h"
#include "cross.h"
+#include "exceptions.h"
+#include "scoped_temporary.h"
#include "util.h"
#include <curl/curl.h>
#include <zip.h>
@@ -37,8 +37,8 @@
using std::function;
using std::list;
using std::string;
-using boost::optional;
using boost::algorithm::trim;
+using boost::optional;
static size_t
@@ -66,7 +66,7 @@ ls_url (string url)
auto const cr = curl_easy_perform (curl);
if (cr != CURLE_OK) {
- return list<string>();
+ return {};
}
list<string> result;