mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-24 13:32:46 -05:00
Code cleanup based on Clang-Tidy.
This commit is contained in:
@@ -86,7 +86,7 @@ public:
|
||||
bool read(const IJsonReader &reader, const char *fileName) override;
|
||||
bool save() override;
|
||||
|
||||
void printVersions();
|
||||
static void printVersions();
|
||||
|
||||
protected:
|
||||
bool m_autoSave = true;
|
||||
@@ -110,7 +110,7 @@ protected:
|
||||
# endif
|
||||
|
||||
private:
|
||||
void setVerbose(const rapidjson::Value &value);
|
||||
static void setVerbose(const rapidjson::Value &value);
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
#include <cstdio>
|
||||
|
||||
|
||||
@@ -48,14 +47,14 @@ void xmrig::BaseTransform::load(JsonChain &chain, Process *process, IConfigTrans
|
||||
{
|
||||
using namespace rapidjson;
|
||||
|
||||
int key;
|
||||
int key = 0;
|
||||
int argc = process->arguments().argc();
|
||||
char **argv = process->arguments().argv();
|
||||
|
||||
Document doc(kObjectType);
|
||||
|
||||
while (true) {
|
||||
key = getopt_long(argc, argv, short_options, options, nullptr);
|
||||
key = getopt_long(argc, argv, short_options, options, nullptr); // NOLINT(concurrency-mt-unsafe)
|
||||
if (key < 0) {
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user