diff --git a/libstuff/SQResult.h b/libstuff/SQResult.h index 1ecd3560f..f76da34ae 100644 --- a/libstuff/SQResult.h +++ b/libstuff/SQResult.h @@ -10,6 +10,7 @@ class SQResultRow : public vector { public: SQResultRow(); SQResultRow(SQResult& result, size_t count = 0); + SQResultRow(SQResultRow const&) = default; void push_back(const string& s); string& operator[](const size_t& key); const string& operator[](const size_t& key) const; @@ -27,6 +28,9 @@ class SQResult { vector headers; vector rows; + SQResult() = default; + SQResult(SQResult const&) = default; + // Accessors bool empty() const; size_t size() const; diff --git a/libstuff/SRandom.cpp b/libstuff/SRandom.cpp index d864589a8..d48018c1b 100644 --- a/libstuff/SRandom.cpp +++ b/libstuff/SRandom.cpp @@ -18,7 +18,7 @@ uint64_t SRandom::rand64() { return _distribution64(_generator); } -string SRandom::randStr(uint length) { +string SRandom::randStr(unsigned length) { string str = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; string newstr; int pos; diff --git a/libstuff/SRandom.h b/libstuff/SRandom.h index 9058206ea..ec3b92e13 100644 --- a/libstuff/SRandom.h +++ b/libstuff/SRandom.h @@ -10,7 +10,7 @@ class SRandom { public: static uint64_t rand64(); static uint64_t limitedRand64(uint64_t min, uint64_t max); - static string randStr(uint length); + static string randStr(unsigned length); private: static mt19937_64 _generator;