mirror of
https://github.com/xmrig/xmrig.git
synced 2024-11-06 00:17:39 +00:00
Fix warnings on macOS.
This commit is contained in:
parent
a98c475a3c
commit
09893bfd36
1 changed files with 3 additions and 3 deletions
|
@ -5,7 +5,7 @@
|
|||
* Copyright 2014-2016 Wolf9466 <https://github.com/OhGodAPet>
|
||||
* Copyright 2016 Jay D Dee <jayddee246@gmail.com>
|
||||
* 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
|
||||
* 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) {
|
||||
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> 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;
|
||||
|
|
Loading…
Reference in a new issue