summaryrefslogtreecommitdiff
path: root/sc/inc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2011-12-01 21:03:42 +0100
committerEike Rathke <erack@redhat.com>2011-12-01 21:04:29 +0100
commit86adb5cacb4fe3e7fb869299447da5876f0da30d (patch)
treef7998dd1a12a82ca53a4fa155cdf5536ac25ef62 /sc/inc
parentb20ea84970fb8b3068880a361822941c47f50edd (diff)
get rid of class Date and Time default ctor with system time penalty
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/chgviset.hxx4
-rw-r--r--sc/inc/externalrefmgr.hxx2
2 files changed, 5 insertions, 1 deletions
diff --git a/sc/inc/chgviset.hxx b/sc/inc/chgviset.hxx
index 630128a8be94..6d95abc9f1cf 100644
--- a/sc/inc/chgviset.hxx
+++ b/sc/inc/chgviset.hxx
@@ -68,7 +68,9 @@ private:
public:
- ScChangeViewSettings()
+ ScChangeViewSettings() :
+ aFirstDateTime( DateTime::EMPTY ),
+ aLastDateTime( DateTime::EMPTY )
{
pCommentSearcher=NULL;
bIsDate=false;
diff --git a/sc/inc/externalrefmgr.hxx b/sc/inc/externalrefmgr.hxx
index 80dda704870e..e0f31580773e 100644
--- a/sc/inc/externalrefmgr.hxx
+++ b/sc/inc/externalrefmgr.hxx
@@ -404,6 +404,8 @@ private:
{
SfxObjectShellRef maShell;
Time maLastAccess;
+
+ SrcShell() : maLastAccess( Time::SYSTEM ) {}
};
typedef ::boost::unordered_map<sal_uInt16, SrcShell> DocShellMap;