diff options
author | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-02-07 15:37:52 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-02-08 18:33:19 -0500 |
commit | 7ffdf6a0dbe23ba9b561ccac71f0b41384e93ac1 (patch) | |
tree | a010434f86021b612f52140bcde8513a71fc7686 /sc/inc | |
parent | d261c7cf961f83bea51ca36b53affd95c24ee044 (diff) |
Let's use enum for better type safety.
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/collect.hxx | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/sc/inc/collect.hxx b/sc/inc/collect.hxx index 8a58ded63e90..08aa75630f55 100644 --- a/sc/inc/collect.hxx +++ b/sc/inc/collect.hxx @@ -117,8 +117,16 @@ class TypedStrData : public ScDataObject { friend class TypedScStrCollection; public: + enum StringType { + Value = 0, + Standard = 1, + Name = 2, + DbName = 3, + Header = 4 + }; + TypedStrData( const rtl::OUString& rStr, double nVal = 0.0, - sal_uInt16 nType = SC_STRTYPE_STANDARD ); + StringType eType = Standard ); TypedStrData( const TypedStrData& rCpy ); @@ -129,9 +137,9 @@ public: double GetValue() const; private: - rtl::OUString aStrValue; - double nValue; - sal_uInt16 nStrType; // 0 = Value + rtl::OUString maStrValue; + double mfValue; + StringType meStrType; // 0 = Value }; class SC_DLLPUBLIC TypedScStrCollection : public ScSortedCollection |