diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-06-03 08:43:14 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-06-03 09:39:15 +0100 |
commit | 2f3ce968c5408bbcbd8b99d4fd1de7a38b40268d (patch) | |
tree | 16d3f486af334d326b1a6f12e360841aadf85f9b /sc | |
parent | cd31b601f6974c59a59f0c393a62db3db53579f7 (diff) |
WaE: even on 32bit an signed 32bit larger than size_t
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/Accessibility/AccessibleCell.cxx | 1 | ||||
-rw-r--r-- | sc/source/ui/unoobj/datauno.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/unoobj/fmtuno.cxx | 1 | ||||
-rw-r--r-- | sc/source/ui/unoobj/styleuno.cxx | 1 | ||||
-rw-r--r-- | sc/source/ui/unoobj/textuno.cxx | 1 |
5 files changed, 1 insertions, 7 deletions
diff --git a/sc/source/ui/Accessibility/AccessibleCell.cxx b/sc/source/ui/Accessibility/AccessibleCell.cxx index 0977e9df2be5..83a7fb511cd7 100644 --- a/sc/source/ui/Accessibility/AccessibleCell.cxx +++ b/sc/source/ui/Accessibility/AccessibleCell.cxx @@ -50,7 +50,6 @@ #include <com/sun/star/accessibility/AccessibleStateType.hpp> #include <com/sun/star/accessibility/AccessibleRelationType.hpp> #include <com/sun/star/accessibility/XAccessibleTable.hpp> -#include <rtl/uuid.h> #include <editeng/brshitem.hxx> #include <comphelper/sequence.hxx> #include <float.h> diff --git a/sc/source/ui/unoobj/datauno.cxx b/sc/source/ui/unoobj/datauno.cxx index 5cb925878ff0..241594331afd 100644 --- a/sc/source/ui/unoobj/datauno.cxx +++ b/sc/source/ui/unoobj/datauno.cxx @@ -33,7 +33,6 @@ #include <svl/smplhint.hxx> #include <svl/zforlist.hxx> -#include <rtl/uuid.h> #include <vcl/svapp.hxx> #include <com/sun/star/awt/XBitmap.hpp> @@ -2294,8 +2293,7 @@ uno::Any SAL_CALL ScDatabaseRangesObj::getByIndex( sal_Int32 nIndex ) lang::WrappedTargetException, uno::RuntimeException) { SolarMutexGuard aGuard; - sal_Int32 nUpper = ::std::numeric_limits<size_t>::max(); - if (nIndex < 0 || nIndex > nUpper) + if (nIndex < 0) throw lang::IndexOutOfBoundsException(); uno::Reference<sheet::XDatabaseRange> xRange(GetObjectByIndex_Impl(static_cast<size_t>(nIndex))); diff --git a/sc/source/ui/unoobj/fmtuno.cxx b/sc/source/ui/unoobj/fmtuno.cxx index f5a4bd4b0b3a..04229622ca32 100644 --- a/sc/source/ui/unoobj/fmtuno.cxx +++ b/sc/source/ui/unoobj/fmtuno.cxx @@ -31,7 +31,6 @@ #include <boost/bind.hpp> -#include <rtl/uuid.h> #include <vcl/svapp.hxx> #include <comphelper/servicehelper.hxx> diff --git a/sc/source/ui/unoobj/styleuno.cxx b/sc/source/ui/unoobj/styleuno.cxx index 647c448c0917..903f41c26f97 100644 --- a/sc/source/ui/unoobj/styleuno.cxx +++ b/sc/source/ui/unoobj/styleuno.cxx @@ -49,7 +49,6 @@ #include <svl/itemset.hxx> #include <svl/intitem.hxx> #include <svl/zformat.hxx> -#include <rtl/uuid.h> #include <com/sun/star/table/BorderLine.hpp> #include <com/sun/star/table/CellVertJustify2.hpp> diff --git a/sc/source/ui/unoobj/textuno.cxx b/sc/source/ui/unoobj/textuno.cxx index fbc51bef8ee6..d436321e7694 100644 --- a/sc/source/ui/unoobj/textuno.cxx +++ b/sc/source/ui/unoobj/textuno.cxx @@ -41,7 +41,6 @@ #include <svx/unomid.hxx> #include <editeng/unoprnms.hxx> #include <editeng/unofored.hxx> -#include <rtl/uuid.h> #include <vcl/virdev.hxx> #include <vcl/svapp.hxx> #include <com/sun/star/awt/FontSlant.hpp> |