Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
m417z
kdlibcpp
Commits
a281002c
Commit
a281002c
authored
Feb 11, 2019
by
ussrhero
Browse files
removed auto ptr for process monitor
parent
199df2e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
kdlib/source/processmon.cpp
kdlib/source/processmon.cpp
+11
-3
No files found.
kdlib/source/processmon.cpp
View file @
a281002c
...
...
@@ -59,6 +59,9 @@ public:
ProcessMonitorImpl
()
:
m_bpUnique
(
0x80000000
)
{}
~
ProcessMonitorImpl
()
{}
public:
DebugCallbackResult
processStart
(
PROCESS_DEBUG_ID
id
);
...
...
@@ -114,7 +117,7 @@ private:
EventsCallbackList
m_callbacks
;
};
std
::
auto_ptr
<
ProcessMonitorImpl
>
g_procmon
;
ProcessMonitorImpl
*
g_procmon
;
///////////////////////////////////////////////////////////////////////////////
...
...
@@ -139,14 +142,19 @@ private:
void
ProcessMonitor
::
init
()
{
g_procmon
.
reset
(
new
ProcessMonitorImpl
);
if
(
!
g_procmon
)
g_procmon
=
new
ProcessMonitorImpl
();
}
///////////////////////////////////////////////////////////////////////////////
void
ProcessMonitor
::
deinit
()
{
g_procmon
.
reset
(
0
);
if
(
g_procmon
)
{
delete
g_procmon
;
g_procmon
=
nullptr
;
}
}
/////////////////////////////////////////////////////////////////////////////
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment