summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-01-22 10:48:19 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-01-23 09:50:57 +0900
commit7b5371d07faead95678641cb890430dd0423f322 (patch)
tree212a6130bde2ab81c4095d0c603c00c0e7466e30
parent6374e2e62eef25945347ce2c9ae9f88e61765d11 (diff)
downloadtdegames-7b5371d07faead95678641cb890430dd0423f322.tar.gz
tdegames-7b5371d07faead95678641cb890430dd0423f322.zip
Replace auto_ptr
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit d6118d8a635f3686b0dbb2ea559fbfb8d9550a22)
-rw-r--r--kmines/solver/advFastRules.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kmines/solver/advFastRules.cpp b/kmines/solver/advFastRules.cpp
index 79c42bba..e9ad110f 100644
--- a/kmines/solver/advFastRules.cpp
+++ b/kmines/solver/advFastRules.cpp
@@ -81,7 +81,7 @@ bool AdviseFast::RuleSet::apply()
{
while(!_rules.empty()){
set<Entry>::iterator i = _rules.begin();
- std::auto_ptr<Rule> r (this->newRule(*i));
+ std::unique_ptr<Rule> r (this->newRule(*i));
_rules.erase(i);
if(r->apply(&this->_surePoints)) return true;