Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
aad359fc
Commit
aad359fc
authored
Jul 20, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed Mac OS build.
parent
af1317f6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
tool_manager.cpp
common/tool/tool_manager.cpp
+4
-3
No files found.
common/tool/tool_manager.cpp
View file @
aad359fc
...
...
@@ -145,7 +145,7 @@ struct TOOL_MANAGER::TOOL_STATE
*/
void
Push
()
{
stateStack
.
push
(
*
this
);
stateStack
.
push
(
new
TOOL_STATE
(
*
this
)
);
clear
();
}
...
...
@@ -162,7 +162,8 @@ struct TOOL_MANAGER::TOOL_STATE
if
(
!
stateStack
.
empty
()
)
{
*
this
=
stateStack
.
top
();
*
this
=
*
stateStack
.
top
();
delete
stateStack
.
top
();
stateStack
.
pop
();
return
true
;
...
...
@@ -177,7 +178,7 @@ struct TOOL_MANAGER::TOOL_STATE
private
:
///> Stack preserving previous states of a TOOL.
std
::
stack
<
TOOL_STATE
>
stateStack
;
std
::
stack
<
TOOL_STATE
*
>
stateStack
;
///> Restores the initial state.
void
clear
()
...
...
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