App: Single arg ctors must be explicit

This commit is contained in:
berniev
2022-08-13 13:15:39 +10:00
committed by wwmayer
parent ded17b7543
commit d66df602ad
36 changed files with 124 additions and 109 deletions

View File

@@ -34,7 +34,7 @@ using namespace App;
namespace {
struct StringCopy : public Enumeration::Object {
StringCopy(const char* str) : d(str) {
explicit StringCopy(const char* str) : d(str) {
}
const char* data() const override {
return d.data();
@@ -51,7 +51,7 @@ private:
};
struct StringView : public Enumeration::Object {
StringView(const char* str) : d(str) {
explicit StringView(const char* str) : d(str) {
}
const char* data() const override {
return d.data();