Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove our two instances of auto_ptr and replace it with unique_ptr. …
…auto_ptr has been deprecated.
  • Loading branch information
Sonicadvance1 committed Nov 13, 2013
1 parent 7b53574 commit 652ef24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Source/Core/Core/Src/PowerPC/Jit64IL/JitIL.cpp
Expand Up @@ -222,10 +222,10 @@ namespace JitILProfiler
}
}
};
std::auto_ptr<JitILProfilerFinalizer> finalizer;
std::unique_ptr<JitILProfilerFinalizer> finalizer;
static void Init()
{
finalizer = std::auto_ptr<JitILProfilerFinalizer>(new JitILProfilerFinalizer);
finalizer = std::unique_ptr<JitILProfilerFinalizer>(new JitILProfilerFinalizer);
}
static void Shutdown()
{
Expand Down
4 changes: 2 additions & 2 deletions Source/Core/Core/Src/PowerPC/JitILCommon/IR.cpp
Expand Up @@ -1224,7 +1224,7 @@ struct Writer
virtual ~Writer() {}
};

static std::auto_ptr<Writer> writer;
static std::unique_ptr<Writer> writer;

static const std::string opcodeNames[] = {
"Nop", "LoadGReg", "LoadLink", "LoadCR", "LoadCarry", "LoadCTR",
Expand Down Expand Up @@ -1276,7 +1276,7 @@ void IRBuilder::WriteToFile(u64 codeHash) {
_assert_(sizeof(opcodeNames) / sizeof(opcodeNames[0]) == Int3 + 1);

if (!writer.get()) {
writer = std::auto_ptr<Writer>(new Writer);
writer = std::unique_ptr<Writer>(new Writer);
}

FILE* const file = writer->file.GetHandle();
Expand Down

0 comments on commit 652ef24

Please sign in to comment.