Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenFlipper-Free
OpenFlipper-Free
Commits
497bf372
Commit
497bf372
authored
Jan 06, 2016
by
Jan Möbius
Browse files
Fixed uninitialized variable
parent
302bfd51
Pipeline
#678
passed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Plugin-AlignMeshes/PluginAlignMeshes.cc
View file @
497bf372
...
...
@@ -48,22 +48,29 @@
PluginAlignMeshes
::
PluginAlignMeshes
()
:
toolBox_
(
0
)
{
toolBox_
(
0
),
toolIcon_
(
0
)
{
}
PluginAlignMeshes
::~
PluginAlignMeshes
()
{
delete
toolIcon_
;
if
(
OpenFlipper
::
Options
::
gui
())
{
delete
toolBox_
;
delete
toolIcon_
;
}
}
void
PluginAlignMeshes
::
initializePlugin
()
{
toolBox_
=
new
AlignMeshesToolbox
();
if
(
OpenFlipper
::
Options
::
gui
())
{
toolBox_
=
new
AlignMeshesToolbox
();
toolIcon_
=
new
QIcon
(
OpenFlipper
::
Options
::
iconDirStr
()
+
OpenFlipper
::
Options
::
dirSeparator
()
+
"alignMeshes.png"
);
emit
addToolbox
(
"Align Meshes"
,
toolBox_
,
toolIcon_
);
toolIcon_
=
new
QIcon
(
OpenFlipper
::
Options
::
iconDirStr
()
+
OpenFlipper
::
Options
::
dirSeparator
()
+
"alignMeshes.png"
);
emit
addToolbox
(
"Align Meshes"
,
toolBox_
,
toolIcon_
);
connect
(
toolBox_
->
alignMeshesButton
,
SIGNAL
(
pressed
()),
SLOT
(
alignMeshes
()));
connect
(
toolBox_
->
alignMeshesButton
,
SIGNAL
(
pressed
()),
SLOT
(
alignMeshes
()));
}
}
void
PluginAlignMeshes
::
alignMeshes
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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