summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorPhilipp Lohmann [pl] <Philipp.Lohmann@Oracle.COM>2011-03-09 13:46:28 +0100
committerMichael Meeks <michael.meeks@suse.com>2012-11-28 12:48:32 +0000
commit9177901fd6491be2937126839e5b96b1bb77ae7c (patch)
tree52ed173378b48713a8be837df2d471e554667972 /sd
parent8bcf6ba5586818f4100113a6b685e891de84a5ea (diff)
impress211: fix some warnings, types
Diffstat (limited to 'sd')
-rwxr-xr-xsd/source/ui/app/sdxfer.cxx2
-rwxr-xr-xsd/source/ui/dlg/present.cxx4
-rw-r--r--sd/source/ui/slidesorter/controller/SlsClipboard.cxx6
3 files changed, 6 insertions, 6 deletions
diff --git a/sd/source/ui/app/sdxfer.cxx b/sd/source/ui/app/sdxfer.cxx
index 68072350d3eb..f516f471d549 100755
--- a/sd/source/ui/app/sdxfer.cxx
+++ b/sd/source/ui/app/sdxfer.cxx
@@ -794,7 +794,7 @@ sal_Int32 SdTransferable::GetUserDataCount (void) const
::boost::shared_ptr<SdTransferable::UserData> SdTransferable::GetUserData (const sal_Int32 nIndex) const
{
- if (nIndex>=0 && nIndex<maUserData.size())
+ if (nIndex>=0 && nIndex<sal_Int32(maUserData.size()))
return maUserData[nIndex];
else
return ::boost::shared_ptr<UserData>();
diff --git a/sd/source/ui/dlg/present.cxx b/sd/source/ui/dlg/present.cxx
index e606dfa4f191..dbe57f0442f5 100755
--- a/sd/source/ui/dlg/present.cxx
+++ b/sd/source/ui/dlg/present.cxx
@@ -226,7 +226,7 @@ void SdStartPresentationDlg::InitMonitorSettings()
maLBMonitor.InsertEntry( aName );
// Store display index together with name.
- const USHORT nEntryIndex (maLBMonitor.GetEntryCount()-1);
+ const sal_uInt32 nEntryIndex (maLBMonitor.GetEntryCount()-1);
maLBMonitor.SetEntryData(nEntryIndex, (void*)nDisplay);
// Remember to select the default display.
@@ -236,7 +236,7 @@ void SdStartPresentationDlg::InitMonitorSettings()
if( !bUnifiedDisplay )
maLBMonitor.InsertEntry( msAllMonitors );
- const USHORT nEntryIndex (maLBMonitor.GetEntryCount()-1);
+ const sal_uInt32 nEntryIndex (maLBMonitor.GetEntryCount()-1);
maLBMonitor.SetEntryData(nEntryIndex, (void*)-1);
if (nDefaultValue == -1)
nSelected = nEntryIndex;
diff --git a/sd/source/ui/slidesorter/controller/SlsClipboard.cxx b/sd/source/ui/slidesorter/controller/SlsClipboard.cxx
index f852d1e8c0d3..398e0da3503b 100644
--- a/sd/source/ui/slidesorter/controller/SlsClipboard.cxx
+++ b/sd/source/ui/slidesorter/controller/SlsClipboard.cxx
@@ -559,8 +559,8 @@ void Clipboard::CreateSlideTransferable (
SdDrawDocument* pTransferableDocument = rSlideSorter.GetModel().GetDocument();
if (pTransferableDocument == NULL)
break;
- BOOL bIsMasterPage;
- const USHORT nPageIndex (pTransferableDocument->GetPageByName(sBookmark, bIsMasterPage));
+ sal_Bool bIsMasterPage = sal_False;
+ const sal_uInt16 nPageIndex (pTransferableDocument->GetPageByName(sBookmark, bIsMasterPage));
if (nPageIndex == SDRPAGE_NOTFOUND)
break;
@@ -630,7 +630,7 @@ void Clipboard::StartDrag (
void Clipboard::DragFinished (sal_Int8 nDropAction)
{
- SdTransferable* pDragTransferable = SD_MOD()->pTransferDrag;
+ // SdTransferable* pDragTransferable = SD_MOD()->pTransferDrag;
if (mnDragFinishedUserEventId == 0)
{