diff options
Diffstat (limited to 'qt-models/tankinfomodel.cpp')
-rw-r--r-- | qt-models/tankinfomodel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-models/tankinfomodel.cpp b/qt-models/tankinfomodel.cpp index 97f0e8010..d2644a16b 100644 --- a/qt-models/tankinfomodel.cpp +++ b/qt-models/tankinfomodel.cpp @@ -6,8 +6,8 @@ TankInfoModel *TankInfoModel::instance() { - static QScopedPointer<TankInfoModel> self(new TankInfoModel()); - return self.data(); + static TankInfoModel self; + return &self; } const QString &TankInfoModel::biggerString() const |