summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@suse.com>2012-02-28 22:42:59 -0500
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-03-09 11:13:27 -0500
commit68c1a73391ddfa4836ca51491ad7faee81132733 (patch)
treefbe5398c6eab17dc8470b9390495c5a2aefb2890 /sc
parentc7ad399a535d21cc73f0e99fbea361e559b34d4f (diff)
mnDatePart in ScDPItemData not used in any meaningful way. Removed.
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/dpitemdata.hxx7
-rw-r--r--sc/source/core/data/dpitemdata.cxx2
2 files changed, 2 insertions, 7 deletions
diff --git a/sc/inc/dpitemdata.hxx b/sc/inc/dpitemdata.hxx
index 16ebcd76f72f..d33a21883f9b 100644
--- a/sc/inc/dpitemdata.hxx
+++ b/sc/inc/dpitemdata.hxx
@@ -56,12 +56,7 @@ public:
static bool isDate( sal_uLong nNumType );
private:
- union
- {
- sal_uLong mnNumFormat;
- sal_Int32 mnDatePart;
- };
-
+ sal_uLong mnNumFormat;
rtl::OUString maString;
double mfValue;
sal_uInt8 mbFlag;
diff --git a/sc/source/core/data/dpitemdata.cxx b/sc/source/core/data/dpitemdata.cxx
index 7a90038e3020..6583b4eb545b 100644
--- a/sc/source/core/data/dpitemdata.cxx
+++ b/sc/source/core/data/dpitemdata.cxx
@@ -115,7 +115,7 @@ bool ScDPItemData::operator==( const ScDPItemData& r ) const
{
if ( IsValue() )
{
- if( (HasDatePart() != r.HasDatePart()) || (HasDatePart() && mnDatePart != r.mnDatePart) )
+ if (HasDatePart() != r.HasDatePart())
return false;
if ( IsDate() != r.IsDate() )