[Libreoffice-commits] core.git: 2 commits - sw/inc sw/source unotools/source
Michael Stahl
mstahl at redhat.com
Fri Jun 28 08:40:46 PDT 2013
sw/inc/pch/precompiled_sw.hxx | 1 -
sw/source/core/unocore/unofield.cxx | 1 -
unotools/source/misc/datetime.cxx | 29 -----------------------------
3 files changed, 31 deletions(-)
New commits:
commit c99b97d306211fe346a7d0a5208aa99118208fc5
Author: Michael Stahl <mstahl at redhat.com>
Date: Thu Jun 27 23:26:18 2013 +0200
datetime.cxx: remove duplicative unused operators
Change-Id: I73aae52cc482f87fb27c35c5c0d9f7b378760906
diff --git a/unotools/source/misc/datetime.cxx b/unotools/source/misc/datetime.cxx
index b383dc5..5101ee0 100644
--- a/unotools/source/misc/datetime.cxx
+++ b/unotools/source/misc/datetime.cxx
@@ -200,35 +200,6 @@ void typeConvert(const starutil::DateTime& _rDateTime, DateTime& _rOut)
_rOut = DateTime(aDate, aTime);
}
-// FIXME: these operators should be.... in toplevel namespace? announced in the .hxx file?
-//-------------------------------------------------------------------------
-bool operator ==(const starutil::DateTime& _rLeft, const starutil::DateTime& _rRight)
-{
- return ( _rLeft.NanoSeconds == _rRight.NanoSeconds) &&
- ( _rLeft.Seconds == _rRight.Seconds) &&
- ( _rLeft.Minutes == _rRight.Minutes) &&
- ( _rLeft.Hours == _rRight.Hours) &&
- ( _rLeft.Day == _rRight.Day) &&
- ( _rLeft.Month == _rRight.Month) &&
- ( _rLeft.Year == _rRight.Year) ;
-}
-
-//-------------------------------------------------------------------------
-bool operator ==(const starutil::Date& _rLeft, const starutil::Date& _rRight)
-{
- return ( _rLeft.Day == _rRight.Day) &&
- ( _rLeft.Month == _rRight.Month) &&
- ( _rLeft.Year == _rRight.Year) ;
-}
-
-//-------------------------------------------------------------------------
-bool operator ==(const starutil::Time& _rLeft, const starutil::Time& _rRight)
-{
- return ( _rLeft.NanoSeconds == _rRight.NanoSeconds) &&
- ( _rLeft.Seconds == _rRight.Seconds) &&
- ( _rLeft.Minutes == _rRight.Minutes) &&
- ( _rLeft.Hours == _rRight.Hours) ;
-}
OUString toISO8601(const starutil::DateTime& rDateTime)
{
commit 7c3980053f15338ff8afaa11b4c5cbe7b6d7ecef
Author: Michael Stahl <mstahl at redhat.com>
Date: Thu Jun 27 16:05:12 2013 +0200
remove unused DateTimeRange includes
Change-Id: Iedf60c9729067214365a74222be6a59c19d0f7d5
diff --git a/sw/inc/pch/precompiled_sw.hxx b/sw/inc/pch/precompiled_sw.hxx
index 99fc585..1a5339e 100644
--- a/sw/inc/pch/precompiled_sw.hxx
+++ b/sw/inc/pch/precompiled_sw.hxx
@@ -405,7 +405,6 @@
#include <com/sun/star/util/CloseVetoException.hpp>
#include <com/sun/star/util/Date.hpp>
#include <com/sun/star/util/DateTime.hpp>
-#include <com/sun/star/util/DateTimeRange.hpp>
#include <com/sun/star/util/Duration.hpp>
#include <com/sun/star/util/JobManager.hpp>
#include <com/sun/star/util/MeasureUnit.hpp>
diff --git a/sw/source/core/unocore/unofield.cxx b/sw/source/core/unocore/unofield.cxx
index b4a5de0..6a202bf 100644
--- a/sw/source/core/unocore/unofield.cxx
+++ b/sw/source/core/unocore/unofield.cxx
@@ -40,7 +40,6 @@
#include <comphelper/string.hxx>
#include <comphelper/types.hxx>
#include <com/sun/star/util/Time.hpp>
-#include <com/sun/star/util/DateTimeRange.hpp>
#include <com/sun/star/util/DateTime.hpp>
#include <com/sun/star/util/Date.hpp>
#include <com/sun/star/beans/XFastPropertySet.hpp>
More information about the Libreoffice-commits
mailing list