diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-19 15:18:55 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-19 15:32:00 +0000 |
commit | e77819f578b4b01314359380e6f115bacb9967f5 (patch) | |
tree | 40788a89be0e5b42b9c212093c2917c61a6fc195 /starmath/inc | |
parent | bfd0e9b7eaa3d24de239647aba7374529dd67572 (diff) |
coverity#738849 Uninitialized scalar field
Change-Id: I5374e4427f800c4500818b97bfe6e94b303a8974
Diffstat (limited to 'starmath/inc')
-rw-r--r-- | starmath/inc/cursor.hxx | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/starmath/inc/cursor.hxx b/starmath/inc/cursor.hxx index 8cc88a51213c..b1f6e8b57929 100644 --- a/starmath/inc/cursor.hxx +++ b/starmath/inc/cursor.hxx @@ -75,20 +75,22 @@ class SmDocShell; */ class SmCursor{ public: - SmCursor(SmNode* tree, SmDocShell* pShell){ - //Initialize members - pTree = tree; - anchor = NULL; - position = NULL; - pGraph = NULL; - pDocShell = pShell; - pClipboard = NULL; - nEditSections = 0; + SmCursor(SmNode* tree, SmDocShell* pShell) + : anchor(NULL) + , position(NULL) + , pTree(tree) + , pDocShell(pShell) + , pGraph(NULL) + , pClipboard(NULL) + , nEditSections(0) + , bIsEnabledSetModifiedSmDocShell(false) + { //Build graph BuildGraph(); } - ~SmCursor(){ + ~SmCursor() + { SetClipboard(); delete pGraph; pGraph = NULL; |