summaryrefslogtreecommitdiff
path: root/sc/source/ui/dbgui/dpgroupdlg.cxx
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2007-02-27 12:02:35 +0000
committerVladimir Glazounov <vg@openoffice.org>2007-02-27 12:02:35 +0000
commit005e93635bf45a1f53761ce0080e3a808ddf66ce (patch)
tree453688a744386be6630aa49b9524bdecc0234f00 /sc/source/ui/dbgui/dpgroupdlg.cxx
parent16e69566a044ce1e6a7c6da36c6e7f1c659a02b2 (diff)
INTEGRATION: CWS calcwarnings (1.6.110); FILE MERGED
2007/02/20 15:21:09 nn 1.6.110.2: #i69284# warnings on wntmsci10.pro after resync 2006/12/01 08:53:24 nn 1.6.110.1: #i69284# warning-free: ui, wntmsci10
Diffstat (limited to 'sc/source/ui/dbgui/dpgroupdlg.cxx')
-rw-r--r--sc/source/ui/dbgui/dpgroupdlg.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/ui/dbgui/dpgroupdlg.cxx b/sc/source/ui/dbgui/dpgroupdlg.cxx
index 4a13d2bb93d4..040600db2e9d 100644
--- a/sc/source/ui/dbgui/dpgroupdlg.cxx
+++ b/sc/source/ui/dbgui/dpgroupdlg.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: dpgroupdlg.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: kz $ $Date: 2006-07-21 13:22:25 $
+ * last change: $Author: vg $ $Date: 2007-02-27 13:02:35 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -260,7 +260,7 @@ ScDPDateGroupDlg::ScDPDateGroupDlg( Window* pParent,
{
maLbUnits.SetHelpId( HID_SC_DPDATEGROUP_LB );
ResStringArray aArr( ScResId( STR_UNITS ) );
- for( USHORT nIdx = 0, nCount = aArr.Count(); nIdx < nCount; ++nIdx )
+ for( USHORT nIdx = 0, nCount = sal::static_int_cast<USHORT>(aArr.Count()); nIdx < nCount; ++nIdx )
maLbUnits.InsertEntry( aArr.GetString( nIdx ) );
FreeResource();
@@ -322,8 +322,8 @@ ScDPNumGroupInfo ScDPDateGroupDlg::GetGroupInfo() const
// TODO: error messages in OK event?
aInfo.Start = maStartHelper.GetValue();
aInfo.End = maEndHelper.GetValue();
- long nNumDays = maEdNumDays.GetValue();
- aInfo.Step = aInfo.DateValues ? nNumDays : 0L;
+ sal_Int64 nNumDays = maEdNumDays.GetValue();
+ aInfo.Step = static_cast<double>( aInfo.DateValues ? nNumDays : 0L );
if( aInfo.End <= aInfo.Start )
aInfo.End = aInfo.Start + nNumDays;