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-22 10:48:19 +0900
commitd6118d8a635f3686b0dbb2ea559fbfb8d9550a22 (patch)
treefb9aec4f28c7d7cbdba3d77bc8d5e3a1e5772d4f
parentc20f4d8f2cf03c69fcecc80d63fe3cbb80f51610 (diff)
downloadtdegames-d6118d8a635f3686b0dbb2ea559fbfb8d9550a22.tar.gz
tdegames-d6118d8a635f3686b0dbb2ea559fbfb8d9550a22.zip
Replace auto_ptr
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-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;