From 09893bfd36ef8ef8eda01969162f23bf2dfd0bab Mon Sep 17 00:00:00 2001 From: XMRig Date: Tue, 15 Jan 2019 18:28:35 +0700 Subject: [PATCH] Fix warnings on macOS. --- src/base/tools/String.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/base/tools/String.cpp b/src/base/tools/String.cpp index fe2792c7..7ed61d01 100644 --- a/src/base/tools/String.cpp +++ b/src/base/tools/String.cpp @@ -5,7 +5,7 @@ * Copyright 2014-2016 Wolf9466 * Copyright 2016 Jay D Dee * Copyright 2017-2018 XMR-Stak , - * Copyright 2016-2018 XMRig , + * Copyright 2016-2019 XMRig , * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -113,7 +113,7 @@ std::vector xmrig::String::split(char sep) const for (pos = 0; pos < m_size; ++pos) { if (m_data[pos] == sep) { if ((pos - start) > 0) { - out.push_back(std::move(String(m_data + start, pos - start))); + out.push_back(String(m_data + start, pos - start)); } start = pos + 1; @@ -121,7 +121,7 @@ std::vector xmrig::String::split(char sep) const } if ((pos - start) > 0) { - out.push_back(std::move(String(m_data + start, pos - start))); + out.push_back(String(m_data + start, pos - start)); } return out;