mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-16 01:51:45 +00:00
Apply cppcoreguidelines-init-variables
This commit is contained in:
@@ -390,7 +390,7 @@ void Cmds::Deserialize(const string& str, const Format type)
|
||||
{
|
||||
fCmds.clear();
|
||||
|
||||
const flatbuffers::Vector<flatbuffers::Offset<FBCommand>>* cmds;
|
||||
const flatbuffers::Vector<flatbuffers::Offset<FBCommand>>* cmds = nullptr;
|
||||
|
||||
if (type == Format::Binary) {
|
||||
cmds = cmd::GetFBCommands(const_cast<char*>(str.c_str()))->commands();
|
||||
|
@@ -156,7 +156,7 @@ void sendCommand(const string& commandIn, const string& path, unsigned int timeo
|
||||
return;
|
||||
}
|
||||
|
||||
char c;
|
||||
char c = 0;
|
||||
string command;
|
||||
TerminalConfig tconfig;
|
||||
|
||||
@@ -185,7 +185,7 @@ try {
|
||||
string targetState;
|
||||
string pKey;
|
||||
string pVal;
|
||||
unsigned int timeout;
|
||||
unsigned int timeout = 0;
|
||||
|
||||
fair::Logger::SetConsoleSeverity("debug");
|
||||
fair::Logger::SetConsoleColor(true);
|
||||
|
Reference in New Issue
Block a user