summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--raul/Socket.hpp2
-rw-r--r--test/path_test.cpp4
-rw-r--r--test/symbol_test.cpp4
3 files changed, 5 insertions, 5 deletions
diff --git a/raul/Socket.hpp b/raul/Socket.hpp
index 57279e7..470527f 100644
--- a/raul/Socket.hpp
+++ b/raul/Socket.hpp
@@ -230,7 +230,7 @@ Socket::accept()
if (!getnameinfo(client_addr, client_addr_len,
host, sizeof(host), serv, sizeof(serv), 0)) {
const std::string scheme = _uri.substr(0, _uri.find(':'));
- client_uri = std::string(scheme + "://" + host + ":" + serv);
+ client_uri = scheme + "://" + host + ":" + serv;
}
}
diff --git a/test/path_test.cpp b/test/path_test.cpp
index 6b95c4f..0ca2f45 100644
--- a/test/path_test.cpp
+++ b/test/path_test.cpp
@@ -74,8 +74,8 @@ main()
assert(!strcmp(Path("/foo/bar").symbol(), "bar"));
assert(!strcmp(Path("/").symbol(), ""));
- Path original(std::string("/foo/bar"));
- assert(original == Path(original));
+ const Path original(std::string("/foo/bar"));
+ assert(original == original);
bool valid = true;
try {
diff --git a/test/symbol_test.cpp b/test/symbol_test.cpp
index 7cb6666..f17878d 100644
--- a/test/symbol_test.cpp
+++ b/test/symbol_test.cpp
@@ -47,8 +47,8 @@ main()
assert(!Symbol::symbolify(name).empty());
}
- Symbol original("sym");
- assert(original == Symbol(original));
+ const Symbol original("sym");
+ assert(original == original);
bool valid = true;
try {