Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Education
Kalzium
Commits
d36687d5
Commit
d36687d5
authored
Sep 22, 2012
by
Etienne Rebetez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't initialize pointers in the header.
parent
287b9dc6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
12 deletions
+21
-12
src/kalzium.cpp
src/kalzium.cpp
+9
-0
src/kalzium.h
src/kalzium.h
+12
-12
No files found.
src/kalzium.cpp
View file @
d36687d5
...
...
@@ -78,6 +78,15 @@ Kalzium::Kalzium() : KXmlGuiWindow( 0 )
// adding the libkdeedu catalog
KGlobal
::
locale
()
->
insertCatalog
(
"libkdeedu"
);
// Init pointers with null
m_glossarydlg
=
0
;
m_infoDialog
=
0
;
m_isotopeDialog
=
0
;
m_elementDataPlotter
=
0
;
m_tablesDialog
=
0
;
m_rsDialog
=
0
;
m_calculator
=
0
;
// reading the elements from file
KalziumDataObject
::
instance
();
...
...
src/kalzium.h
View file @
d36687d5
...
...
@@ -62,23 +62,23 @@ public:
virtual
~
Kalzium
();
private:
DetailedInfoDlg
*
m_infoDialog
=
0
;
DetailedInfoDlg
*
m_infoDialog
;
LegendWidget
*
m_legendWidget
=
0
;
LegendWidget
*
m_legendWidget
;
TableInfoWidget
*
m_TableInfoWidget
=
0
;
TableInfoWidget
*
m_TableInfoWidget
;
PeriodicTableView
*
m_periodicTable
=
0
;
PeriodicTableView
*
m_periodicTable
;
IsotopeTableDialog
*
m_isotopeDialog
=
0
;
IsotopeTableDialog
*
m_isotopeDialog
;
ElementDataViewer
*
m_elementDataPlotter
=
0
;
ElementDataViewer
*
m_elementDataPlotter
;
TablesDialog
*
m_tablesDialog
=
0
;
TablesDialog
*
m_tablesDialog
;
RSDialog
*
m_rsDialog
=
0
;
RSDialog
*
m_rsDialog
;
calculator
*
m_calculator
=
0
;
calculator
*
m_calculator
;
/**
*initialize actions
...
...
@@ -130,11 +130,11 @@ private:
QToolBox
*
m_toolbox
;
int
m_toolboxCurrent
=
0
;
int
m_toolboxCurrent
;
GlossaryDialog
*
m_glossarydlg
=
0
;
GlossaryDialog
*
m_glossarydlg
;
ExportDialog
*
m_exportDialog
=
0
;
ExportDialog
*
m_exportDialog
;
UnitSettingsDialog
*
m_unitsDialog
;
...
...
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