Fix warnings on macOS.

This commit is contained in:
XMRig 2019-01-15 18:28:35 +07:00
parent a98c475a3c
commit 09893bfd36

View file

@ -5,7 +5,7 @@
* Copyright 2014-2016 Wolf9466 <https://github.com/OhGodAPet> * Copyright 2014-2016 Wolf9466 <https://github.com/OhGodAPet>
* Copyright 2016 Jay D Dee <jayddee246@gmail.com> * Copyright 2016 Jay D Dee <jayddee246@gmail.com>
* Copyright 2017-2018 XMR-Stak <https://github.com/fireice-uk>, <https://github.com/psychocrypt> * Copyright 2017-2018 XMR-Stak <https://github.com/fireice-uk>, <https://github.com/psychocrypt>
* Copyright 2016-2018 XMRig <https://github.com/xmrig>, <support@xmrig.com> * Copyright 2016-2019 XMRig <https://github.com/xmrig>, <support@xmrig.com>
* *
* This program is free software: you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License as published by
@ -113,7 +113,7 @@ std::vector<xmrig::String> xmrig::String::split(char sep) const
for (pos = 0; pos < m_size; ++pos) { for (pos = 0; pos < m_size; ++pos) {
if (m_data[pos] == sep) { if (m_data[pos] == sep) {
if ((pos - start) > 0) { 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; start = pos + 1;
@ -121,7 +121,7 @@ std::vector<xmrig::String> xmrig::String::split(char sep) const
} }
if ((pos - start) > 0) { 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; return out;