summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorCarsten Driesner <cd@openoffice.org>2011-01-07 18:24:18 +0100
committerCarsten Driesner <cd@openoffice.org>2011-01-07 18:24:18 +0100
commit68f2d13c9f1698eb45c4a1b341d1cac7c7526929 (patch)
tree7410ec5fba02e438b18e68ca5aa78f2fa3f26ef0 /vcl/source
parent39ad2ff73a9700be25064169bc8bd85001ab959c (diff)
removetooltypes: #i112600# Adapt Unix part for removed tool types
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/control/ilstbox.cxx18
-rw-r--r--vcl/source/gdi/pngread.cxx4
-rw-r--r--vcl/source/window/wpropset.cxx2
3 files changed, 12 insertions, 12 deletions
diff --git a/vcl/source/control/ilstbox.cxx b/vcl/source/control/ilstbox.cxx
index 9f85d2d39dab..bf4bd72efe98 100644
--- a/vcl/source/control/ilstbox.cxx
+++ b/vcl/source/control/ilstbox.cxx
@@ -1705,10 +1705,10 @@ sal_Bool ImplListBoxWindow::ProcessKeyInput( const KeyEvent& rKEvt )
// -----------------------------------------------------------------------
namespace
{
- static ::vcl::StringEntryIdentifier lcl_getEntry( const ImplEntryList& _rList, USHORT _nPos, String& _out_entryText )
+ static ::vcl::StringEntryIdentifier lcl_getEntry( const ImplEntryList& _rList, sal_uInt16 _nPos, String& _out_entryText )
{
OSL_PRECOND( ( _nPos != LISTBOX_ENTRY_NOTFOUND ), "lcl_getEntry: invalid position!" );
- USHORT nEntryCount( _rList.GetEntryCount() );
+ sal_uInt16 nEntryCount( _rList.GetEntryCount() );
if ( _nPos >= nEntryCount )
_nPos = 0;
_out_entryText = _rList.GetEntryText( _nPos );
@@ -1718,10 +1718,10 @@ namespace
return reinterpret_cast< ::vcl::StringEntryIdentifier >( _nPos + 1 );
}
- static USHORT lcl_getEntryPos( ::vcl::StringEntryIdentifier _entry )
+ static sal_uInt16 lcl_getEntryPos( ::vcl::StringEntryIdentifier _entry )
{
// our pos is 0-based, but StringEntryIdentifier does not allow for a NULL
- return static_cast< USHORT >( reinterpret_cast< sal_Int64 >( _entry ) ) - 1;
+ return static_cast< sal_uInt16 >( reinterpret_cast< sal_Int64 >( _entry ) ) - 1;
}
}
@@ -1734,14 +1734,14 @@ namespace
// -----------------------------------------------------------------------
::vcl::StringEntryIdentifier ImplListBoxWindow::NextEntry( ::vcl::StringEntryIdentifier _currentEntry, String& _out_entryText ) const
{
- USHORT nNextPos = lcl_getEntryPos( _currentEntry ) + 1;
+ sal_uInt16 nNextPos = lcl_getEntryPos( _currentEntry ) + 1;
return lcl_getEntry( *GetEntryList(), nNextPos, _out_entryText );
}
// -----------------------------------------------------------------------
void ImplListBoxWindow::SelectEntry( ::vcl::StringEntryIdentifier _entry )
{
- USHORT nSelect = lcl_getEntryPos( _entry );
+ sal_uInt16 nSelect = lcl_getEntryPos( _entry );
if ( mpEntryList->IsEntryPosSelected( nSelect ) )
{
// ignore that. This method is a callback from the QuickSelectionEngine, which means the user attempted
@@ -1759,12 +1759,12 @@ void ImplListBoxWindow::SelectEntry( ::vcl::StringEntryIdentifier _entry )
// actually select
mnCurrentPos = nSelect;
- if ( SelectEntries( nSelect, LET_KEYMOVE, FALSE, FALSE ) )
+ if ( SelectEntries( nSelect, LET_KEYMOVE, sal_False, sal_False ) )
{
- mbTravelSelect = TRUE;
+ mbTravelSelect = sal_True;
mnSelectModifier = 0;
ImplCallSelect();
- mbTravelSelect = FALSE;
+ mbTravelSelect = sal_False;
}
}
diff --git a/vcl/source/gdi/pngread.cxx b/vcl/source/gdi/pngread.cxx
index 1f264763ac04..ac6116e38234 100644
--- a/vcl/source/gdi/pngread.cxx
+++ b/vcl/source/gdi/pngread.cxx
@@ -412,7 +412,7 @@ BitmapEx PNGReaderImpl::GetBitmapEx( const Size& rPreviewSizeHint )
case PNGCHUNK_IDAT :
{
if ( !mpInflateInBuf ) // taking care that the header has properly been read
- mbStatus = FALSE;
+ mbStatus = sal_False;
else if ( !mbIDAT ) // the gfx is finished, but there may be left a zlibCRC of about 4Bytes
ImplReadIDAT();
}
@@ -635,7 +635,7 @@ sal_Bool PNGReaderImpl::ImplReadHeader( const Size& rPreviewSizeHint )
nScansize64++; // each scanline includes one filterbyte
if ( nScansize64 > SAL_MAX_UINT32 )
- return FALSE;
+ return sal_False;
mnScansize = static_cast< sal_uInt32 >( nScansize64 );
diff --git a/vcl/source/window/wpropset.cxx b/vcl/source/window/wpropset.cxx
index 4aaa3f987b77..672803794e0a 100644
--- a/vcl/source/window/wpropset.cxx
+++ b/vcl/source/window/wpropset.cxx
@@ -293,7 +293,7 @@ IMPL_LINK( vcl::WindowPropertySet, ChildEventListener, VclWindowEvent*, pEvent )
= mpImpl->maProperties.find( pEvent->GetWindow()->getIdentifier() );
if( it != mpImpl->maProperties.end() ) // this is valid, some unnamed child may have sent an event
{
- ULONG nId = pEvent->GetId();
+ sal_uInt32 nId = pEvent->GetId();
// check if anything interesting happened
if(
// general windowy things