summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2023-02-08 14:03:03 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-02-08 17:24:28 +0000
commit53dd3ff490f0a6900c6323e3a0bc18310ea4ff56 (patch)
treea75bbb9bbb6c5f2be66fb65a90f58cb37ef6b2f8 /examples
parentef609e0c2330c368d30df4eb0d47f00cec1e381f (diff)
downloadqtbase-53dd3ff490f0a6900c6323e3a0bc18310ea4ff56.tar.gz
savegame ex.: make Level ctor explicit
A QString is not a full representation of a Level, so the Level(QString) ctor should be explicit. Task-number: QTBUG-108857 Change-Id: I24b705139e61c4aaf59cb0aad3b536013e0d07df Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io> (cherry picked from commit fa55d46e1f09ddf45dbe5700d4637b003363c559) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples')
-rw-r--r--examples/corelib/serialization/savegame/level.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/corelib/serialization/savegame/level.h b/examples/corelib/serialization/savegame/level.h
index f7aca091e4..e09e2c9f3c 100644
--- a/examples/corelib/serialization/savegame/level.h
+++ b/examples/corelib/serialization/savegame/level.h
@@ -14,7 +14,7 @@ class Level
{
public:
Level() = default;
- Level(const QString &name);
+ explicit Level(const QString &name);
QString name() const;