diff options
| author | Thomas Holder <thomas@thomas-holder.de> | 2019-08-23 15:25:01 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marcjeanmougin@free.fr> | 2019-08-23 17:38:10 +0000 |
| commit | ac61104df7df1b452666a037aeac55d5b71da85d (patch) | |
| tree | 6240a92eebb158c8785e15342a5db7c0ecf3d0a6 /src/debug | |
| parent | Update of Czech translation (diff) | |
| download | inkscape-ac61104df7df1b452666a037aeac55d5b71da85d.tar.gz inkscape-ac61104df7df1b452666a037aeac55d5b71da85d.zip | |
Eliminate clang warnings
-Winfinite-recursion
-Wpessimizing-move
-Wunused-label
-Wunneeded-internal-declaration
-Wself-assign-overloaded
-Wunused-const-variable (some)
-Wsometimes-uninitialized (some)
Diffstat (limited to 'src/debug')
| -rw-r--r-- | src/debug/event.h | 2 | ||||
| -rw-r--r-- | src/debug/simple-event.h | 2 | ||||
| -rw-r--r-- | src/debug/timestamp.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/debug/event.h b/src/debug/event.h index db0146b4b..3bc6089f0 100644 --- a/src/debug/event.h +++ b/src/debug/event.h @@ -46,7 +46,7 @@ public: : name(n), value(std::move(v)) {} PropertyPair(char const *n, char const *v) : name(n), - value(std::move(std::make_shared<std::string>(v))) {} + value(std::make_shared<std::string>(v)) {} char const *name; std::shared_ptr<std::string> value; diff --git a/src/debug/simple-event.h b/src/debug/simple-event.h index 983ff5346..c753ae1fe 100644 --- a/src/debug/simple-event.h +++ b/src/debug/simple-event.h @@ -48,7 +48,7 @@ protected: _properties.push_back(PropertyPair(name, std::move(value))); } void _addProperty(char const *name, char const *value) { - _addProperty(name, std::move(std::make_shared<std::string>(value))); + _addProperty(name, std::make_shared<std::string>(value)); } void _addProperty(char const *name, long value) { _addFormattedProperty(name, "%ld", value); diff --git a/src/debug/timestamp.cpp b/src/debug/timestamp.cpp index 619c4a18a..14d211ef3 100644 --- a/src/debug/timestamp.cpp +++ b/src/debug/timestamp.cpp @@ -28,7 +28,7 @@ std::shared_ptr<std::string> timestamp() { gchar *value = g_strdup_printf( "%d.%06d", static_cast<gint>(timestamp.tv_sec), static_cast<gint>(timestamp.tv_usec) ); std::shared_ptr<std::string> result = std::make_shared<std::string>(value); g_free(value); - return std::move(result); + return result; } } |
