[Libreoffice-commits] .: sc/source
Kohei Yoshida
kohei at kemper.freedesktop.org
Wed Jan 19 23:12:15 PST 2011
sc/source/core/data/dptablecache.cxx | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
New commits:
commit bc0d4b98ca2fe626dbdfa170c6a7618fa67d369c
Author: Kohei Yoshida <kyoshida at novell.com>
Date: Thu Jan 20 02:10:42 2011 -0500
Blank line cleanup.
diff --git a/sc/source/core/data/dptablecache.cxx b/sc/source/core/data/dptablecache.cxx
index 3b9ed90..b12e38c 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 );
More information about the Libreoffice-commits
mailing list