summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/salgdi.hxx2
-rw-r--r--vcl/inc/vcl/lazydelete.hxx4
-rw-r--r--vcl/inc/vcl/print.hxx2
-rw-r--r--vcl/source/app/svdata.cxx2
-rw-r--r--vcl/source/app/svmain.cxx6
-rw-r--r--vcl/source/control/ilstbox.cxx2
-rw-r--r--vcl/source/filter/wmf/winwmf.cxx2
-rw-r--r--vcl/source/gdi/cvtsvm.cxx4
-rw-r--r--vcl/source/gdi/gdimtf.cxx2
-rw-r--r--vcl/source/gdi/outdev4.cxx6
-rw-r--r--vcl/source/gdi/outdev6.cxx4
-rw-r--r--vcl/source/gdi/pdfwriter_impl.cxx2
-rw-r--r--vcl/source/gdi/pdfwriter_impl2.cxx2
-rw-r--r--vcl/source/gdi/print2.cxx4
-rw-r--r--vcl/source/gdi/print3.cxx2
-rw-r--r--vcl/source/gdi/regband.cxx12
-rw-r--r--vcl/source/gdi/region.cxx22
-rw-r--r--vcl/source/gdi/textlayout.cxx2
-rw-r--r--vcl/source/glyphs/graphite_layout.cxx4
-rw-r--r--vcl/source/window/window.cxx2
-rw-r--r--vcl/unx/generic/app/saldisp.cxx2
-rw-r--r--vcl/unx/generic/printer/ppdparser.cxx2
-rw-r--r--vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx2
-rw-r--r--vcl/win/source/gdi/salgdi.cxx2
-rw-r--r--vcl/win/source/window/salframe.cxx2
25 files changed, 49 insertions, 49 deletions
diff --git a/vcl/inc/salgdi.hxx b/vcl/inc/salgdi.hxx
index 13e764c532bd..9936c8651f05 100644
--- a/vcl/inc/salgdi.hxx
+++ b/vcl/inc/salgdi.hxx
@@ -243,7 +243,7 @@ public:
virtual bool AddTempDevFont( ImplDevFontList*, const rtl::OUString& rFileURL, const rtl::OUString& rFontName ) = 0;
// CreateFontSubset: a method to get a subset of glyhps of a font
// inside a new valid font file
- // returns sal_True if creation of subset was successfull
+ // returns sal_True if creation of subset was successful
// parameters: rToFile: contains a osl file URL to write the subset to
// pFont: describes from which font to create a subset
// pGlyphIDs: the glyph ids to be extracted
diff --git a/vcl/inc/vcl/lazydelete.hxx b/vcl/inc/vcl/lazydelete.hxx
index 9f616c047a7e..ee818eef8df8 100644
--- a/vcl/inc/vcl/lazydelete.hxx
+++ b/vcl/inc/vcl/lazydelete.hxx
@@ -247,11 +247,11 @@ namespace vcl
T* get() { return m_pT; }
// set contents, returning old contents
- // ownership is transfered !
+ // ownership is transferred !
T* set( T* i_pNew ) { T* pOld = m_pT; m_pT = i_pNew; return pOld; }
// set contents, deleting old contents
- // ownership is transfered !
+ // ownership is transferred !
void reset( T* i_pNew = NULL )
{ OSL_ASSERT( i_pNew != m_pT || i_pNew == NULL ); T* pOld = m_pT; m_pT = i_pNew; delete pOld; }
};
diff --git a/vcl/inc/vcl/print.hxx b/vcl/inc/vcl/print.hxx
index 509e1c6406c0..e0a87e9af088 100644
--- a/vcl/inc/vcl/print.hxx
+++ b/vcl/inc/vcl/print.hxx
@@ -203,7 +203,7 @@ public:
// read printer options from configuration, parameter decides whether the set for
// print "to printer" or "to file" should be read.
- // returns true if config was read, false if an error occured
+ // returns true if config was read, false if an error occurred
bool ReadFromConfig( bool bFile );
};
diff --git a/vcl/source/app/svdata.cxx b/vcl/source/app/svdata.cxx
index 657c3ee3c237..9bccdf7c2aba 100644
--- a/vcl/source/app/svdata.cxx
+++ b/vcl/source/app/svdata.cxx
@@ -145,7 +145,7 @@ Window* ImplGetDefaultWindow()
// First test if we already have a default window.
// Don't only place a single if..else inside solar mutex lockframe
- // because then we might have to wait for the solar mutex what is not neccessary
+ // because then we might have to wait for the solar mutex what is not necessary
// if we already have a default window.
if ( !pSVData->mpDefaultWin )
diff --git a/vcl/source/app/svmain.cxx b/vcl/source/app/svmain.cxx
index c89a04e110c6..c0fd56a3c350 100644
--- a/vcl/source/app/svmain.cxx
+++ b/vcl/source/app/svmain.cxx
@@ -90,7 +90,7 @@ oslSignalAction SAL_CALL VCLExceptionSignal_impl( void* /*pData*/, oslSignalInfo
{
static bool bIn = false;
- // if we crash again, bail out immediatly
+ // if we crash again, bail out immediately
if ( !bIn )
{
sal_uInt16 nVCLException = 0;
@@ -617,7 +617,7 @@ static void SAL_CALL MainWorkerFunction( void* pArgs )
void CreateMainLoopThread( oslWorkerFunction pWorker, void * pThreadData )
{
#ifdef WNT
- // sal thread alway call CoInitializeEx, so a sysdepen implementation is necessary
+ // sal thread always call CoInitializeEx, so a sysdepen implementation is necessary
unsigned uThreadID;
hThreadID = (HANDLE)_beginthreadex(
@@ -625,7 +625,7 @@ void CreateMainLoopThread( oslWorkerFunction pWorker, void * pThreadData )
0, // stacksize 0 means default
_threadmain, // thread worker function
new WorkerThreadData( pWorker, pThreadData ), // arguments for worker function
- 0, // 0 means: create immediatly otherwise use CREATE_SUSPENDED
+ 0, // 0 means: create immediately otherwise use CREATE_SUSPENDED
&uThreadID ); // thread id to fill
#else
hThreadID = osl_createThread( MainWorkerFunction, new WorkerThreadData( pWorker, pThreadData ) );
diff --git a/vcl/source/control/ilstbox.cxx b/vcl/source/control/ilstbox.cxx
index 61fa49caa611..475d07465cf6 100644
--- a/vcl/source/control/ilstbox.cxx
+++ b/vcl/source/control/ilstbox.cxx
@@ -757,7 +757,7 @@ void ImplListBoxWindow::ImplCallSelect()
{
if ( !IsTravelSelect() && GetEntryList()->GetMaxMRUCount() )
{
- // Insert the selected entry as MRU, if not allready first MRU
+ // Insert the selected entry as MRU, if not already first MRU
sal_uInt16 nSelected = GetEntryList()->GetSelectEntryPos( 0 );
sal_uInt16 nMRUCount = GetEntryList()->GetMRUCount();
String aSelected = GetEntryList()->GetEntryText( nSelected );
diff --git a/vcl/source/filter/wmf/winwmf.cxx b/vcl/source/filter/wmf/winwmf.cxx
index ecdf04d06abd..f80b1d7019eb 100644
--- a/vcl/source/filter/wmf/winwmf.cxx
+++ b/vcl/source/filter/wmf/winwmf.cxx
@@ -870,7 +870,7 @@ void WMFReader::ReadRecordParams( sal_uInt16 nFunc )
pWMF->SetError( SVSTREAM_FILEFORMAT_ERROR );
break;
}
- if ( nRecSize >= 4 ) // minimal escape lenght
+ if ( nRecSize >= 4 ) // minimal escape length
{
sal_uInt16 nMode = 0, nLen = 0;
*pWMF >> nMode
diff --git a/vcl/source/gdi/cvtsvm.cxx b/vcl/source/gdi/cvtsvm.cxx
index 869f726cda80..1aabaf0a7588 100644
--- a/vcl/source/gdi/cvtsvm.cxx
+++ b/vcl/source/gdi/cvtsvm.cxx
@@ -1358,7 +1358,7 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
}
}
- // cleanup push-pop stack if neccessary
+ // cleanup push-pop stack if necessary
while( !aLIStack.empty() )
{
delete aLIStack.top();
@@ -1404,7 +1404,7 @@ void SVMConverter::ImplConvertToSVM1( SvStream& rOStm, GDIMetaFile& rMtf )
rOStm.Seek( nActPos );
rOStm.SetNumberFormatInt( nOldFormat );
- // cleanup push-pop stack if neccessary
+ // cleanup push-pop stack if necessary
while ( !aLineColStack.empty() )
{
delete aLineColStack.top();
diff --git a/vcl/source/gdi/gdimtf.cxx b/vcl/source/gdi/gdimtf.cxx
index ab53ac867712..b989b80f826d 100644
--- a/vcl/source/gdi/gdimtf.cxx
+++ b/vcl/source/gdi/gdimtf.cxx
@@ -3092,7 +3092,7 @@ sal_Bool GDIMetaFile::CreateThumbnail( sal_uInt32 nMaximumExtent,
const_cast<GDIMetaFile *>(this)->WindStart();
const_cast<GDIMetaFile *>(this)->Play( &aVDev, aBackPosPix, aDrawSize );
- // draw overlay if neccessary
+ // draw overlay if necessary
if ( pOverlay )
aVDev.DrawBitmapEx( aOverlayRect.TopLeft(), aOverlayRect.GetSize(), *pOverlay );
diff --git a/vcl/source/gdi/outdev4.cxx b/vcl/source/gdi/outdev4.cxx
index ee5d8daac3f8..390220d4f158 100644
--- a/vcl/source/gdi/outdev4.cxx
+++ b/vcl/source/gdi/outdev4.cxx
@@ -724,7 +724,7 @@ void OutputDevice::DrawGradient( const Rectangle& rRect,
mbInitFillColor = sal_True;
- // calculate step count if neccessary
+ // calculate step count if necessary
if ( !aGradient.GetSteps() )
aGradient.SetSteps( GRADIENT_DEFAULT_STEPCOUNT );
@@ -888,7 +888,7 @@ void OutputDevice::DrawGradient( const PolyPolygon& rPolyPoly,
mbInitFillColor = sal_True;
- // calculate step count if neccessary
+ // calculate step count if necessary
if ( !aGradient.GetSteps() )
aGradient.SetSteps( GRADIENT_DEFAULT_STEPCOUNT );
@@ -997,7 +997,7 @@ void OutputDevice::AddGradientActions( const Rectangle& rRect, const Gradient& r
aRect.Right()++;
aRect.Bottom()++;
- // calculate step count if neccessary
+ // calculate step count if necessary
if ( !aGradient.GetSteps() )
aGradient.SetSteps( GRADIENT_DEFAULT_STEPCOUNT );
diff --git a/vcl/source/gdi/outdev6.cxx b/vcl/source/gdi/outdev6.cxx
index b79ee991732e..680a63dc34de 100644
--- a/vcl/source/gdi/outdev6.cxx
+++ b/vcl/source/gdi/outdev6.cxx
@@ -221,7 +221,7 @@ void OutputDevice::DrawTransparent( const PolyPolygon& rPolyPoly,
return;
}
- // short circut for drawing an invisible polygon
+ // short circuit for drawing an invisible polygon
if( !mbFillColor || (nTransparencePercent >= 100) )
{
// short circuit if the polygon border is invisible too
@@ -646,7 +646,7 @@ void OutputDevice::DrawTransparent( const GDIMetaFile& rMtf, const Point& rPos,
if(GetAntialiasing())
{
// #i102109#
- // For MetaFile replay (see task) it may now be neccessary to take
+ // For MetaFile replay (see task) it may now be necessary to take
// into account that the content is AntiAlialised and needs to be masked
// like that. Instead of masking, i will use a copy-modify-paste cycle
// here (as i already use in the VclPrimiziveRenderer with successs)
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx
index 956cd85a0276..178e619a2bba 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -4765,7 +4765,7 @@ we check in the following sequence:
}
else
{
-// change the fragment to accomodate the bookmark (only if the file extension is PDF and
+// change the fragment to accommodate the bookmark (only if the file extension is PDF and
// the requested action is of the correct type)
if(m_aContext.DefaultLinkAction == PDFWriter::URIActionDestination &&
bTargetHasPDFExtension && !aFragment.isEmpty() )
diff --git a/vcl/source/gdi/pdfwriter_impl2.cxx b/vcl/source/gdi/pdfwriter_impl2.cxx
index ac35c4f7c05c..469f49205ee4 100644
--- a/vcl/source/gdi/pdfwriter_impl2.cxx
+++ b/vcl/source/gdi/pdfwriter_impl2.cxx
@@ -98,7 +98,7 @@ void PDFWriterImpl::implWriteBitmapEx( const Point& i_rPoint, const Size& i_rSiz
}
if( i_rContext.m_nMaxImageResolution > 50 )
{
- // do downsampling if neccessary
+ // do downsampling if necessary
const Size aDstSizeTwip( i_pDummyVDev->PixelToLogic( i_pDummyVDev->LogicToPixel( aSize ), MAP_TWIP ) );
const Size aBmpSize( aBitmapEx.GetSizePixel() );
const double fBmpPixelX = aBmpSize.Width();
diff --git a/vcl/source/gdi/print2.cxx b/vcl/source/gdi/print2.cxx
index 5f7ccadea4d2..e1fe203b6ca8 100644
--- a/vcl/source/gdi/print2.cxx
+++ b/vcl/source/gdi/print2.cxx
@@ -1372,7 +1372,7 @@ Bitmap OutputDevice::GetDownsampledBitmap( const Size& rDstSz,
const Rectangle aBmpRect( aPoint, aBmp.GetSizePixel() );
Rectangle aSrcRect( rSrcPt, rSrcSz );
- // do cropping if neccessary
+ // do cropping if necessary
if( aSrcRect.Intersection( aBmpRect ) != aBmpRect )
{
if( !aSrcRect.IsEmpty() )
@@ -1383,7 +1383,7 @@ Bitmap OutputDevice::GetDownsampledBitmap( const Size& rDstSz,
if( !aBmp.IsEmpty() )
{
- // do downsampling if neccessary
+ // do downsampling if necessary
Size aDstSizeTwip( PixelToLogic( LogicToPixel( rDstSz ), MAP_TWIP ) );
// #103209# Normalize size (mirroring has to happen outside of this method)
diff --git a/vcl/source/gdi/print3.cxx b/vcl/source/gdi/print3.cxx
index d47aa925dc31..314ade5e1960 100644
--- a/vcl/source/gdi/print3.cxx
+++ b/vcl/source/gdi/print3.cxx
@@ -1223,7 +1223,7 @@ void PrinterController::printFilteredPage( int i_nPage )
mpImplData->mpPrinter->SetPaperBin( mpImplData->mnFixedPaperBin );
}
- // if full paper is meant to be used, move the output to accomodate for pageoffset
+ // if full paper is meant to be used, move the output to accommodate for pageoffset
if( aPageSize.bFullPaper )
{
Point aPageOffset( mpImplData->mpPrinter->GetPageOffset() );
diff --git a/vcl/source/gdi/regband.cxx b/vcl/source/gdi/regband.cxx
index 760e19bdff49..5bd481b6f3de 100644
--- a/vcl/source/gdi/regband.cxx
+++ b/vcl/source/gdi/regband.cxx
@@ -182,7 +182,7 @@ void ImplRegionBand::ProcessPoints()
ImplRegionBandPoint* pNextBandPoint = pRegionBandPoint->mpNextBandPoint->mpNextBandPoint;
- // remove allready processed points
+ // remove already processed points
delete pRegionBandPoint->mpNextBandPoint;
delete pRegionBandPoint;
@@ -216,7 +216,7 @@ sal_Bool ImplRegionBand::InsertPoint( long nX, long nLineId,
return sal_True;
}
- // look if line allready touched the band
+ // look if line already touched the band
ImplRegionBandPoint* pRegionBandPoint = mpFirstBandPoint;
ImplRegionBandPoint* pLastTestedRegionBandPoint = NULL;
while( pRegionBandPoint )
@@ -272,7 +272,7 @@ sal_Bool ImplRegionBand::InsertPoint( long nX, long nLineId,
pLastTestedRegionBandPoint = NULL;
while ( pRegionBandPoint )
{
- // new point completly left? -> insert as first point
+ // new point completely left? -> insert as first point
if ( nX <= pRegionBandPoint->mnX )
{
pNewRegionBandPoint = new ImplRegionBandPoint;
@@ -409,7 +409,7 @@ void ImplRegionBand::Union( long nXLeft, long nXRight )
if ( (nXLeft >= pSep->mnXLeft) && (nXRight <= pSep->mnXRight) )
return;
- // new separation completly left? -> new separation!
+ // new separation completely left? -> new separation!
if ( nXRight < pSep->mnXLeft )
{
pNewSep = new ImplRegionBandSep;
@@ -473,7 +473,7 @@ void ImplRegionBand::Intersect( long nXLeft, long nXRight )
ImplRegionBandSep* pSep = mpFirstSep;
while ( pSep )
{
- // new separation completly outside? -> remove separation
+ // new separation completely outside? -> remove separation
if ( (nXRight < pSep->mnXLeft) || (nXLeft > pSep->mnXRight) )
// will be removed from the optimizer
pSep->mbRemoved = sal_True;
@@ -894,7 +894,7 @@ sal_Bool ImplRegionBand::operator==( const ImplRegionBand& rRegionBand ) const
pSecondRectBandSep = pSecondRectBandSep->mpNextSep;
}
- // differnt number of separations?
+ // different number of separations?
if ( pOwnRectBandSep || pSecondRectBandSep )
return sal_False;
diff --git a/vcl/source/gdi/region.cxx b/vcl/source/gdi/region.cxx
index 6276017ecb17..f12b3c0aa43d 100644
--- a/vcl/source/gdi/region.cxx
+++ b/vcl/source/gdi/region.cxx
@@ -701,7 +701,7 @@ void ImplRegion::InsertBands( long nTop, long nBottom )
if ( bTopBoundaryInserted && bTop2BoundaryInserted && bBottomBoundaryInserted )
break;
- // insert bands between two bands if neccessary
+ // insert bands between two bands if necessary
if ( pBand->mpNextBand )
{
if ( (pBand->mnYBottom + 1) < pBand->mpNextBand->mnYTop )
@@ -1373,7 +1373,7 @@ void Region::Union( const Rectangle& rRect )
long nRight = Max( rRect.Left(), rRect.Right() );
long nBottom = Max( rRect.Top(), rRect.Bottom() );
- // insert bands if the boundaries are not allready in the list
+ // insert bands if the boundaries are not already in the list
mpImplRegion->InsertBands( nTop, nBottom );
// process union
@@ -1495,7 +1495,7 @@ void Region::Intersect( const Rectangle& rRect )
if ( mpImplRegion->mnRefCount > 1 )
ImplCopyData();
- // insert bands if the boundaries are not allready in the list
+ // insert bands if the boundaries are not already in the list
mpImplRegion->InsertBands( nTop, nBottom );
// process intersections
@@ -1578,7 +1578,7 @@ void Region::Exclude( const Rectangle& rRect )
long nRight = Max( rRect.Left(), rRect.Right() );
long nBottom = Max( rRect.Top(), rRect.Bottom() );
- // insert bands if the boundaries are not allready in the list
+ // insert bands if the boundaries are not already in the list
mpImplRegion->InsertBands( nTop, nBottom );
// process exclude
@@ -1640,7 +1640,7 @@ void Region::XOr( const Rectangle& rRect )
long nRight = Max( rRect.Left(), rRect.Right() );
long nBottom = Max( rRect.Top(), rRect.Bottom() );
- // insert bands if the boundaries are not allready in the list
+ // insert bands if the boundaries are not already in the list
mpImplRegion->InsertBands( nTop, nBottom );
// process xor
@@ -1706,7 +1706,7 @@ void Region::Union( const Region& rRegion )
ImplRegionBand* pBand = rRegion.mpImplRegion->mpFirstBand;
while ( pBand )
{
- // insert bands if the boundaries are not allready in the list
+ // insert bands if the boundaries are not already in the list
mpImplRegion->InsertBands( pBand->mnYTop, pBand->mnYBottom );
// process all elements of the list
@@ -1818,7 +1818,7 @@ void Region::Intersect( const Region& rRegion )
pBand = rRegion.mpImplRegion->mpFirstBand;
while ( pBand )
{
- // insert bands if the boundaries are not allready in the list
+ // insert bands if the boundaries are not already in the list
mpImplRegion->InsertBands( pBand->mnYTop, pBand->mnYBottom );
// process all elements of the list
@@ -1853,7 +1853,7 @@ void Region::Intersect( const Region& rRegion )
pBand = pBand->mpNextBand;
}
- // remove all untouched bands if bands allready left
+ // remove all untouched bands if bands already left
ImplRegionBand* pPrevBand = 0;
pBand = mpImplRegion->mpFirstBand;
while ( pBand )
@@ -1934,7 +1934,7 @@ void Region::Exclude( const Region& rRegion )
ImplRegionBand* pBand = rRegion.mpImplRegion->mpFirstBand;
while ( pBand )
{
- // insert bands if the boundaries are not allready in the list
+ // insert bands if the boundaries are not already in the list
mpImplRegion->InsertBands( pBand->mnYTop, pBand->mnYBottom );
// process all elements of the list
@@ -2012,7 +2012,7 @@ void Region::XOr( const Region& rRegion )
ImplRegionBand* pBand = rRegion.mpImplRegion->mpFirstBand;
while ( pBand )
{
- // insert bands if the boundaries are not allready in the list
+ // insert bands if the boundaries are not already in the list
mpImplRegion->InsertBands( pBand->mnYTop, pBand->mnYBottom );
// process all elements of the list
@@ -2824,7 +2824,7 @@ void Region::ImplEndAddRect()
return;
}
- // check if we have somthing to optimize
+ // check if we have something to optimize
if ( !mpImplRegion->mpFirstBand->mpNextBand )
{
// update mpImplRegion->mnRectCount, because no OptimizeBandList is called
diff --git a/vcl/source/gdi/textlayout.cxx b/vcl/source/gdi/textlayout.cxx
index 81dc881e1f78..d03ea25b8f2a 100644
--- a/vcl/source/gdi/textlayout.cxx
+++ b/vcl/source/gdi/textlayout.cxx
@@ -141,7 +141,7 @@ namespace vcl
// normally, controls simulate "zoom" by "zooming" the font. This is responsible for (part of) the discrepancies
// between text in Writer and text in controls in Writer, though both have the same font.
// So, if we have a zoom set at the control, then we do not scale the font, but instead modify the map mode
- // to accomodate for the zoom.
+ // to accommodate for the zoom.
aTargetMapMode.SetScaleX( m_aZoom ); // TODO: shouldn't this be "current_scale * zoom"?
aTargetMapMode.SetScaleY( m_aZoom );
diff --git a/vcl/source/glyphs/graphite_layout.cxx b/vcl/source/glyphs/graphite_layout.cxx
index 5183c71171a6..6bebcf260273 100644
--- a/vcl/source/glyphs/graphite_layout.cxx
+++ b/vcl/source/glyphs/graphite_layout.cxx
@@ -553,7 +553,7 @@ gr_segment * GraphiteLayout::CreateSegment(ImplLayoutArgs& rArgs)
gr_segment * pSegment = NULL;
- // Set the SalLayouts values to be the inital ones.
+ // Set the SalLayouts values to be the initial ones.
SalLayout::AdjustLayout(rArgs);
// TODO check if this is needed
if (mnUnitsPerPixel > 1)
@@ -1093,7 +1093,7 @@ void GraphiteLayout::kashidaJustify(std::vector<int>& rDeltaWidths, sal_GlyphId
void GraphiteLayout::GetCaretPositions( int nArraySize, sal_Int32* pCaretXArray ) const
{
// For each character except the last discover the caret positions
- // immediatly before and after that character.
+ // immediately before and after that character.
// This is used for underlines in the GUI amongst other things.
// It may be used from MultiSalLayout, in which case it must take into account
// glyphs that have been moved.
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 8c6ac824e0cd..31d3a4808be9 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -7154,7 +7154,7 @@ void Window::setPosSizePixel( long nX, long nY,
// Resize should be called directly. If we havn't
// set the correct size, we get a second resize from
- // the system with the correct size. This can be happend
+ // the system with the correct size. This can be happened
// if the size is to small or to large.
ImplHandleResize( pWindow, nWidth, nHeight );
}
diff --git a/vcl/unx/generic/app/saldisp.cxx b/vcl/unx/generic/app/saldisp.cxx
index 068356cd696c..1246140efbc6 100644
--- a/vcl/unx/generic/app/saldisp.cxx
+++ b/vcl/unx/generic/app/saldisp.cxx
@@ -1447,7 +1447,7 @@ KeySym SalDisplay::GetKeySym( XKeyEvent *pEvent,
case XLookupBoth:
case XLookupChars:
- /* nothing to, char allready in pPrintable */
+ /* nothing to, char already in pPrintable */
break;
}
}
diff --git a/vcl/unx/generic/printer/ppdparser.cxx b/vcl/unx/generic/printer/ppdparser.cxx
index 5dccb6ffb61d..80f6056006ed 100644
--- a/vcl/unx/generic/printer/ppdparser.cxx
+++ b/vcl/unx/generic/printer/ppdparser.cxx
@@ -346,7 +346,7 @@ void PPDDecompressStream::Open( const rtl::OUString& i_rFile )
}
else
{
- // compression successfull, can get rid of file stream
+ // compression successful, can get rid of file stream
delete mpFileStream, mpFileStream = NULL;
mpMemStream->Seek( 0 );
}
diff --git a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
index 210e50ba43fa..3f870cee2780 100644
--- a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
+++ b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
@@ -967,7 +967,7 @@ void GtkSalGraphics::renderAreaToPix( cairo_t *cr,
long ay = region->y;
long awidth = region->width;
- /* Get tje cairo surface and the data */
+ /* Get the cairo surface and the data */
cairo_surface_t* surface = cairo_get_target(cr);
g_assert(surface != NULL);
cairo_surface_flush(surface);
diff --git a/vcl/win/source/gdi/salgdi.cxx b/vcl/win/source/gdi/salgdi.cxx
index 61342aa5ead7..80bf5ab4c987 100644
--- a/vcl/win/source/gdi/salgdi.cxx
+++ b/vcl/win/source/gdi/salgdi.cxx
@@ -351,7 +351,7 @@ void ImplFreeSalGDI()
pSalData->mhDitherPal = 0;
}
- // delete buffers for dithering DIB patterns, if neccessary
+ // delete buffers for dithering DIB patterns, if necessary
if ( pSalData->mhDitherDIB )
{
GlobalUnlock( pSalData->mhDitherDIB );
diff --git a/vcl/win/source/window/salframe.cxx b/vcl/win/source/window/salframe.cxx
index 7dd816c09832..a8245649421c 100644
--- a/vcl/win/source/window/salframe.cxx
+++ b/vcl/win/source/window/salframe.cxx
@@ -3513,7 +3513,7 @@ static long ImplHandleKeyMsg( HWND hWnd, UINT nMsg,
{
bIgnoreCharMsg = FALSE;
// #101635# if zero is returned here for WM_SYSCHAR (ALT+<key>) Windows will beep
- // becaus this 'hotkey' was not processed -> better return 1
+ // because this 'hotkey' was not processed -> better return 1
// except for Alt-SPACE which should always open the sysmenu (#104616#)
// also return zero if a system menubar is available that might process this hotkey