diff options
author | Armin Le Grand <alg@apache.org> | 2014-01-17 22:32:30 +0000 |
---|---|---|
committer | Armin Le Grand <alg@apache.org> | 2014-01-17 22:32:30 +0000 |
commit | 5cc9cb9c52617bab6eb6d84331dde8f3d580ee31 (patch) | |
tree | 98245d5f637b18d1a36da4ea4b2b6722c4a920e7 /sc/inc/refdata.hxx | |
parent | bb94c19d2c7df1c468d38b7744e0d34e8ac27a99 (diff) |
i123870 corrected import values on xml import with chart, avoid uninitialized values
Notes
Notes:
ignore: fixed
Diffstat (limited to 'sc/inc/refdata.hxx')
-rw-r--r-- | sc/inc/refdata.hxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sc/inc/refdata.hxx b/sc/inc/refdata.hxx index d729d22013bc..9550b82c9e97 100644 --- a/sc/inc/refdata.hxx +++ b/sc/inc/refdata.hxx @@ -76,6 +76,10 @@ struct SC_DLLPUBLIC ScSingleRefData // Single reference (one address) int // No default ctor, because used in ScRawToken union, set InitFlags! inline void InitFlags() { bFlags = 0; } // all FALSE + + // #123870# Make it possible to init members to some defined values + inline void InitMembers() { nCol = nRow = nTab = nRelCol = nRelRow = nRelTab = 0; } + // InitAddress: InitFlags and set address inline void InitAddress( const ScAddress& rAdr ); inline void InitAddress( SCCOL nCol, SCROW nRow, SCTAB nTab ); @@ -157,6 +161,14 @@ struct ScComplexRefData // Complex reference (a range) into the sheet inline void InitFlags() { Ref1.InitFlags(); Ref2.InitFlags(); } + + // #123870# Make it possible to init members to some defined values + inline void InitMembers() + { + Ref1.InitMembers(); + Ref2.InitMembers(); + } + inline void InitRange( const ScRange& rRange ) { Ref1.InitAddress( rRange.aStart ); |