diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2011-01-20 02:10:42 -0500 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-01-20 02:10:42 -0500 |
commit | e02fdfc51aa55b0f8f03aecafcea0087fbdbaf27 (patch) | |
tree | 88984c8a74f22009810bdac340182c4356180ad2 /sc | |
parent | b8a9b968996c38e104b97bebc034e898f44603d6 (diff) |
Blank line cleanup.
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/dptablecache.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sc/source/core/data/dptablecache.cxx b/sc/source/core/data/dptablecache.cxx index 6641db87536d..32ce72289656 100644 --- a/sc/source/core/data/dptablecache.cxx +++ b/sc/source/core/data/dptablecache.cxx @@ -300,7 +300,6 @@ TypedStrData* ScDPItemData::CreateTypeString( ) sal_uInt8 ScDPItemData::GetType() const { - if ( IsHasErr() ) return SC_VALTYPE_ERROR; else if ( !IsHasData() ) @@ -309,7 +308,6 @@ sal_uInt8 ScDPItemData::GetType() const return SC_VALTYPE_VALUE; else return SC_VALTYPE_STRING; - } bool ScDPItemData::IsHasData() const @@ -329,7 +327,6 @@ bool ScDPItemData::IsValue() const String ScDPItemData::GetString() const { - return aString; } @@ -343,18 +340,20 @@ ULONG ScDPItemData::GetNumFormat() const } bool ScDPItemData::HasStringData() const - { return IsHasData()&&!IsHasErr()&&!IsValue(); } + bool ScDPItemData::IsDate() const { return !!(mbFlag&MK_DATE); } + bool ScDPItemData::HasDatePart() const { return !!(mbFlag&MK_DATEPART); } + void ScDPItemData::SetDate( bool b ) { b ? ( mbFlag |= MK_DATE ) : ( mbFlag &= ~MK_DATE ); |