diff options
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 ); |