summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2013-06-04 16:09:58 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2013-06-04 16:11:44 +0200
commita96f593b415390f7f218e5772930d127a832eb43 (patch)
treea4cf5bcc44e67fe503fb399d36276d82fee1866e /vcl
parent424e936fc095c676a24c04acdd1eb1fbb6a27bed (diff)
Some more sal_IntPtr dance, but enough for today
Change-Id: Ic772181321e74713244223cc3d4542bd4cd2dc88
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/win/wincomp.hxx2
-rw-r--r--vcl/source/window/printdlg.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/vcl/inc/win/wincomp.hxx b/vcl/inc/win/wincomp.hxx
index e6c7fd0c3318..8660c1b3ded7 100644
--- a/vcl/inc/win/wincomp.hxx
+++ b/vcl/inc/win/wincomp.hxx
@@ -135,7 +135,7 @@ inline void SetWindowFont( HWND hWnd, HFONT hFont, BOOL bRedraw )
inline HFONT GetWindowFont( HWND hWnd )
{
- return (HFONT)(UINT)SendMessage( hWnd, WM_GETFONT, 0, 0 );
+ return (HFONT) SendMessage( hWnd, WM_GETFONT, 0, 0 );
}
inline void SetClassCursor( HWND hWnd, HCURSOR hCursor )
diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx
index f11044c6263e..89f9a76df85b 100644
--- a/vcl/source/window/printdlg.cxx
+++ b/vcl/source/window/printdlg.cxx
@@ -1336,7 +1336,7 @@ Size PrintDialog::getJobPageSize()
void PrintDialog::updateNupFromPages()
{
- long nPages = long(maNUpPage.mpNupPagesBox->GetEntryData(maNUpPage.mpNupPagesBox->GetSelectEntryPos()));
+ sal_IntPtr nPages = sal_IntPtr(maNUpPage.mpNupPagesBox->GetEntryData(maNUpPage.mpNupPagesBox->GetSelectEntryPos()));
int nRows = int(maNUpPage.mpNupRowsEdt->GetValue());
int nCols = int(maNUpPage.mpNupColEdt->GetValue());
long nPageMargin = long(maNUpPage.mpPageMarginEdt->Denormalize(maNUpPage.mpPageMarginEdt->GetValue( FUNIT_100TH_MM )));