diff --git a/vcl/inc/pdf/pdfwriter_impl.hxx b/vcl/inc/pdf/pdfwriter_impl.hxx index 60ae44acec97..30c748836747 100644 --- a/vcl/inc/pdf/pdfwriter_impl.hxx +++ b/vcl/inc/pdf/pdfwriter_impl.hxx @@ -153,7 +153,7 @@ struct PDFPage // the same for double values void appendMappedLength( double fLength, OStringBuffer& rBuffer, bool bVertical = true, sal_Int32 nPrecision = 5 ) const; // appends LineInfo - // returns false if too many dash array entry were created for + // returns false if too many dash array entries were created for // the implementation limits of some PDF readers bool appendLineInfo( const LineInfo& rInfo, OStringBuffer& rBuffer ) const; // appends a horizontal waveline with vertical offset (helper for drawWaveLine) diff --git a/vcl/qa/cppunit/pdfexport/PDFEncryptionTest.cxx b/vcl/qa/cppunit/pdfexport/PDFEncryptionTest.cxx index 54754821df12..b4a76b06aa1e 100644 --- a/vcl/qa/cppunit/pdfexport/PDFEncryptionTest.cxx +++ b/vcl/qa/cppunit/pdfexport/PDFEncryptionTest.cxx @@ -279,12 +279,12 @@ CPPUNIT_TEST_FIXTURE(PDFEncryptionTest, testPermsEncryption) { // Encrypts file permissions for /Perms entry - // We use a existing encrypted /Perm to validate the decryption and re-encryption + // We use an existing encrypted /Perm to validate the decryption and re-encryption // algorithm works correctly. const sal_uInt8 pUserPass[] = { 'T', 'e', 's', 't' }; - // U and UE taken from an PDF that was encrypted with "Test" as password + // U and UE taken from a PDF that was encrypted with "Test" as password std::vector U = parseHex("7BD210807A0277FECC52C261C442F02E1AD62C1A23553348B8F8AF7320" "DC9978FAB7E65E1BF4CA76F4BE5E6D2AA8C7D5"); std::vector UE @@ -327,7 +327,7 @@ CPPUNIT_TEST_FIXTURE(PDFEncryptionTest, testPermsEncryption) CPPUNIT_ASSERT_EQUAL(std::string("fcffffffffffffff54616462bb609a8a"), comphelper::hashToString(aPermsDecrpyted)); - // Check the creating /Perm content from access permissions works correctly + // Check that creating /Perm content from access permissions works correctly std::vector aPermsCreated = vcl::pdf::createPerms(nExpectedAccessPermisssions, true); // Last 12 bytes are random, so we shouldn't check those @@ -500,7 +500,7 @@ CPPUNIT_TEST_FIXTURE(PDFEncryptionTest, testFileEncryption_checkDifferentIV) } } -} // end anonymous namespace +} // namespace CPPUNIT_PLUGIN_IMPLEMENT(); diff --git a/vcl/source/bitmap/BitmapTools.cxx b/vcl/source/bitmap/BitmapTools.cxx index 3e6d4f00c2df..77d0e19769ea 100644 --- a/vcl/source/bitmap/BitmapTools.cxx +++ b/vcl/source/bitmap/BitmapTools.cxx @@ -149,7 +149,7 @@ void loadFromSvg(SvStream& rStream, const OUString& sPath, Bitmap& rBitmap, doub @param pData The block of data to copy @param nStride - The number of bytes in a scanline, must >= (width * nBitCount / 8) + The number of bytes in a scanline, must be >= (width * nBitCount / 8) @param bReversColors In case the endianness of pData is wrong, you could reverse colors */ diff --git a/vcl/source/control/wizardmachine.cxx b/vcl/source/control/wizardmachine.cxx index 80afc44ecf8b..fc7b147f8535 100644 --- a/vcl/source/control/wizardmachine.cxx +++ b/vcl/source/control/wizardmachine.cxx @@ -294,7 +294,7 @@ namespace vcl return; // prevent WizardTravelSuspension from using this instance - // after will be destructed due to onFinish and async response call + // after it is destructed due to onFinish and async response call { WizardTravelSuspension aTravelGuard( *this ); if (!prepareLeaveCurrentState(WizardTypes::eFinish)) @@ -579,8 +579,8 @@ namespace vcl OSL_ENSURE( pController != nullptr, "WizardMachine::updateTravelUI: no controller for the current page!" ); bool bCanAdvance = - ( !pController || pController->canAdvance() ) // the current page allows to advance - && canAdvance(); // the dialog as a whole allows to advance + ( !pController || pController->canAdvance() ) // the current page allows advancing + && canAdvance(); // the dialog as a whole allows advancing enableButtons( WizardButtonFlags::NEXT, bCanAdvance ); } @@ -695,7 +695,7 @@ namespace vcl return nullptr; } -} // namespace svt +} // namespace vcl /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vcl/source/filter/idxf/dxfvec.hxx b/vcl/source/filter/idxf/dxfvec.hxx index 9e73ca51e98f..f5ca227319d4 100644 --- a/vcl/source/filter/idxf/dxfvec.hxx +++ b/vcl/source/filter/idxf/dxfvec.hxx @@ -76,14 +76,14 @@ public: // vector with same direction and a length of 1: DXFVector Unit() const; - // equivalence or net: + // equivalence or not: bool operator == (const DXFVector & rV) const; }; //---------------------------- DXFTransform ------------------------------------ -// a transformation matrice specialized for our problem +// a transformation matrix specialized for our problem class DXFTransform { @@ -104,7 +104,7 @@ public: DXFTransform(const DXFVector & rExtrusion); // Transformation "ECS->WCS" via "Entity Extrusion Direction" - // ant the "Arbitrary Axis Algorithm" + // and the "Arbitrary Axis Algorithm" // (See DXF-Docu from AutoDesk) DXFTransform(const DXFVector & rViewDir, const DXFVector & rViewTarget); @@ -127,7 +127,7 @@ public: bool TransCircleToEllipse(double fRadius, double & rEx, double & rEy) const; // Attempt to transform a circle (in xy plane) so that it results - // in an aligned ellipse. If the does not work because an ellipse of + // in an aligned ellipse. If this does not work because an ellipse of // arbitrary position would be created, sal_False is returned. // (The center point will not be transformed, use Transform(..)) @@ -135,7 +135,7 @@ public: // Calculates the rotation angle around z-axis (in degrees) bool Mirror() const; - // Returns sal_True, if the matrice represents a left-handed coordinate system + // Returns sal_True, if the matrix represents a left-handed coordinate system LineInfo Transform(const DXFLineInfo& aDXFLineInfo) const; // Transform to LineInfo diff --git a/vcl/source/filter/ipsd/ipsd.cxx b/vcl/source/filter/ipsd/ipsd.cxx index 28e697e57c5d..2b906f0859df 100644 --- a/vcl/source/filter/ipsd/ipsd.cxx +++ b/vcl/source/filter/ipsd/ipsd.cxx @@ -698,7 +698,7 @@ bool PSDReader::ImplReadBody() if (mbTransparent && m_rPSD.good()) { - // the psd is 24 or 8 bit grafix + alpha channel + // the psd is 24 or 8 bit graphic + alpha channel nY = nX = 0; while ( nY < mpFileHeader->nRows ) diff --git a/vcl/source/filter/iras/iras.cxx b/vcl/source/filter/iras/iras.cxx index e39e417d0177..72b74c50ceae 100644 --- a/vcl/source/filter/iras/iras.cxx +++ b/vcl/source/filter/iras/iras.cxx @@ -100,7 +100,7 @@ bool RASReader::ReadRAS(Graphic & rGraphic) if (!m_rRAS.good() || nMagicNumber != SUNRASTER_MAGICNUMBER) return false; - // Kopf einlesen: + // Read header: mbStatus = ImplReadHeader(); if ( !mbStatus ) @@ -109,7 +109,7 @@ bool RASReader::ReadRAS(Graphic & rGraphic) std::vector aPalette; bool bOk = true; - if ( mnDstBitsPerPix <= 8 ) // pallets pictures + if ( mnDstBitsPerPix <= 8 ) // palette pictures { bool bPalette(false); diff --git a/vcl/source/window/splitwin.cxx b/vcl/source/window/splitwin.cxx index aa293110fd2d..1e77fce70eea 100644 --- a/vcl/source/window/splitwin.cxx +++ b/vcl/source/window/splitwin.cxx @@ -124,7 +124,7 @@ ImplSplitSet::ImplSplitSet() : the upper or lower bound, respectively. Otherwise return the given size unmodified. Note that either mnMinSize and/or mnMaxSize can be -1 in which case the - size has not lower or upper bound. + size has no lower or upper bound. */ namespace { tools::Long ValidateSize (const tools::Long nSize, const ImplSplitItem & rItem) diff --git a/vcl/unx/generic/print/genprnpsp.cxx b/vcl/unx/generic/print/genprnpsp.cxx index de7aa70c9a5f..4b24bcb46495 100644 --- a/vcl/unx/generic/print/genprnpsp.cxx +++ b/vcl/unx/generic/print/genprnpsp.cxx @@ -834,7 +834,7 @@ bool PspSalPrinter::StartJob( const OUString* i_pFileName, const OUString& i_rJo // either on first page // or on paper format change - cups does not support multiple paper formats per job (yet?) // so we need to start a new job to get a new paper format from the printer - // orientation switches (that is switch of height and width) is handled transparently by CUPS + // orientation switches (that is switch of height and width) are handled transparently by CUPS if( ! xWriter || (aNewParm != aLastParm && ! i_pFileName ) ) { diff --git a/vcl/win/app/salinst.cxx b/vcl/win/app/salinst.cxx index b16bdf990799..652b405cda3d 100644 --- a/vcl/win/app/salinst.cxx +++ b/vcl/win/app/salinst.cxx @@ -98,7 +98,7 @@ void WinSalYieldMutex::BeforeReleaseHandler() if ( GetSalData()->mnAppThreadId != GetCurrentThreadId() ) { - // If we don't call these message, the Output from the + // If we don't call these messages, the Output from the // Java clients doesn't come in the right order GdiFlush(); }