A bunch of minor tweaks from cppcheck
This commit is contained in:
parent
e06d475131
commit
c95d66f0e4
19 changed files with 114 additions and 208 deletions
|
|
@ -54,18 +54,6 @@ enum RequestType {
|
|||
PROMPT_ERROR = 3 // Error message prompt. Unused right now.
|
||||
};
|
||||
|
||||
class Queue {
|
||||
public:
|
||||
Queue(nlohmann::json object, const C2D_Image &img, const std::string &name, const std::string &uName, const std::string &eName, const std::string &lUpdated) :
|
||||
obj(object), icn(img), name(name), unistoreName(uName), entryName(eName), lastUpdated(lUpdated) { };
|
||||
|
||||
QueueStatus status = QueueStatus::None;
|
||||
nlohmann::json obj;
|
||||
C2D_Image icn;
|
||||
int total, current;
|
||||
std::string name = "", unistoreName = "", entryName = "", lastUpdated = "";
|
||||
};
|
||||
|
||||
/* Of course also a namespace to that part, so we can do that in a Thread. */
|
||||
namespace QueueSystem {
|
||||
extern int RequestNeeded, RequestAnswer;
|
||||
|
|
@ -79,4 +67,16 @@ namespace QueueSystem {
|
|||
void Resume();
|
||||
};
|
||||
|
||||
class Queue {
|
||||
public:
|
||||
Queue(nlohmann::json object, const C2D_Image &img, const std::string &name, const std::string &uName, const std::string &eName, const std::string &lUpdated) :
|
||||
obj(object), icn(img), total(object.size()), current(QueueSystem::LastElement), name(name), unistoreName(uName), entryName(eName), lastUpdated(lUpdated) { };
|
||||
|
||||
QueueStatus status = QueueStatus::None;
|
||||
nlohmann::json obj;
|
||||
C2D_Image icn;
|
||||
int total, current;
|
||||
std::string name = "", unistoreName = "", entryName = "", lastUpdated = "";
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue