summaryrefslogtreecommitdiff
path: root/sc/inc/externalrefmgr.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-02-15 13:36:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-02-16 08:17:34 +0200
commit2a9b0e435147929b4cd55ed9adf4d879e8b8a484 (patch)
tree5327efaa81bd226df28f314dbb0895bfcc5eeec1 /sc/inc/externalrefmgr.hxx
parent1b7bc018c850471a34563348c81877b6cf2d6793 (diff)
drop ReferencedFlag enum
since we never use the REFERENCED_PERMANENT enumerator, we can represent this as a simple bool Change-Id: I34cccad34b90834f285c44d2e44aa1cdc33276d1
Diffstat (limited to 'sc/inc/externalrefmgr.hxx')
-rw-r--r--sc/inc/externalrefmgr.hxx12
1 files changed, 1 insertions, 11 deletions
diff --git a/sc/inc/externalrefmgr.hxx b/sc/inc/externalrefmgr.hxx
index 434685c085b3..417ef65c3bc1 100644
--- a/sc/inc/externalrefmgr.hxx
+++ b/sc/inc/externalrefmgr.hxx
@@ -134,13 +134,6 @@ public:
{
public:
- enum ReferencedFlag
- {
- UNREFERENCED,
- REFERENCED_MARKED, // marked as referenced during store to file
- REFERENCED_PERMANENT // permanently marked, e.g. from within interpreter
- };
-
Table();
~Table();
@@ -159,9 +152,6 @@ public:
/** Set/clear referenced status flag only if current status is not
REFERENCED_PERMANENT. */
void setReferenced( bool bReferenced );
- /// Unconditionally set the reference status flag.
- void setReferencedFlag( ReferencedFlag eFlag );
- ReferencedFlag getReferencedFlag() const { return meReferenced;}
bool isReferenced() const;
/// Obtain a sorted vector of rows.
void getAllRows(::std::vector<SCROW>& rRows, SCROW nLow = 0, SCROW nHigh = MAXROW) const;
@@ -195,7 +185,7 @@ public:
/** Collection of individual cached ranges. The table ranges are
* not used & always zero. */
ScRangeList maCachedRanges;
- ReferencedFlag meReferenced;
+ bool mbReferenced;
};
typedef std::shared_ptr<Table> TableTypeRef;