diff options
author | Andras Timar <andras.timar@collabora.com> | 2014-02-06 23:21:40 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2014-02-06 23:22:30 +0100 |
commit | ac6e8ac7e407887a18bca6c835f85e372a4d0932 (patch) | |
tree | 4011854fc6beb6c4bf03fc278efeeffddedae7d0 /vcl | |
parent | Typo: cheking -> checking (diff) | |
download | core-ac6e8ac7e407887a18bca6c835f85e372a4d0932.tar.gz core-ac6e8ac7e407887a18bca6c835f85e372a4d0932.zip |
typo fixes in comments
Change-Id: Idd49478d59cd062118fbf8e99d1c8bc5250013fc
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/outfont.hxx | 2 | ||||
-rw-r--r-- | vcl/source/gdi/pdfwriter_impl.hxx | 2 | ||||
-rw-r--r-- | vcl/source/gdi/pdfwriter_impl2.cxx | 8 | ||||
-rw-r--r-- | vcl/source/window/winproc.cxx | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/vcl/inc/outfont.hxx b/vcl/inc/outfont.hxx index 8229169ddbbc..348dc51a12b5 100644 --- a/vcl/inc/outfont.hxx +++ b/vcl/inc/outfont.hxx @@ -102,7 +102,7 @@ public: // TODO: create matching interface class bool IsSubsettable() const { return mbSubsettable; } public: // TODO: hide members behind accessor methods - OUString maMapNames; // List of family name aliass separated with ';' + OUString maMapNames; // List of family name aliases separated with ';' int mnQuality; // Quality (used when similar fonts compete) bool mbOrientation; // true: physical font can be rotated bool mbDevice; // true: built in font diff --git a/vcl/source/gdi/pdfwriter_impl.hxx b/vcl/source/gdi/pdfwriter_impl.hxx index 40f780c5a9fd..52373f082ccf 100644 --- a/vcl/source/gdi/pdfwriter_impl.hxx +++ b/vcl/source/gdi/pdfwriter_impl.hxx @@ -796,7 +796,7 @@ i12626 /* the encryption key, formed with the user password according to algorithm 3.2, maximum length is 16 bytes + 3 + 2 for 128 bit security */ sal_Int32 m_nKeyLength; // key length, 16 or 5 - sal_Int32 m_nRC4KeyLength; // key length, 16 or 10, to be input to the algorith 3.1 + sal_Int32 m_nRC4KeyLength; // key length, 16 or 10, to be input to the algorithm 3.1 /* set to true if the following stream must be encrypted, used inside writeBuffer() */ bool m_bEncryptThisStream; diff --git a/vcl/source/gdi/pdfwriter_impl2.cxx b/vcl/source/gdi/pdfwriter_impl2.cxx index 135d5b0a43a2..bea5e7dc2c2c 100644 --- a/vcl/source/gdi/pdfwriter_impl2.cxx +++ b/vcl/source/gdi/pdfwriter_impl2.cxx @@ -1165,13 +1165,13 @@ void PDFWriterImpl::checkAndEnableStreamEncryption( register sal_Int32 nObject ) m_aContext.Encryption.EncryptionKey[i++] = (sal_uInt8)nObject; m_aContext.Encryption.EncryptionKey[i++] = (sal_uInt8)( nObject >> 8 ); m_aContext.Encryption.EncryptionKey[i++] = (sal_uInt8)( nObject >> 16 ); - //the other location of m_nEncryptionKey are already set to 0, our fixed generation number + // the other location of m_nEncryptionKey is already set to 0, our fixed generation number // do the MD5 hash sal_uInt8 nMD5Sum[ RTL_DIGEST_LENGTH_MD5 ]; // the i+2 to take into account the generation number, always zero rtl_digest_MD5( &m_aContext.Encryption.EncryptionKey[0], i+2, nMD5Sum, sizeof(nMD5Sum) ); // initialize the RC4 with the key - // key legth: see algoritm 3.1, step 4: (N+5) max 16 + // key length: see algorithm 3.1, step 4: (N+5) max 16 rtl_cipher_initARCFOUR( m_aCipher, rtl_Cipher_DirectionEncode, nMD5Sum, m_nRC4KeyLength, NULL, 0 ); } } @@ -1184,13 +1184,13 @@ void PDFWriterImpl::enableStringEncryption( register sal_Int32 nObject ) m_aContext.Encryption.EncryptionKey[i++] = (sal_uInt8)nObject; m_aContext.Encryption.EncryptionKey[i++] = (sal_uInt8)( nObject >> 8 ); m_aContext.Encryption.EncryptionKey[i++] = (sal_uInt8)( nObject >> 16 ); - //the other location of m_nEncryptionKey are already set to 0, our fixed generation number + // the other location of m_nEncryptionKey is already set to 0, our fixed generation number // do the MD5 hash sal_uInt8 nMD5Sum[ RTL_DIGEST_LENGTH_MD5 ]; // the i+2 to take into account the generation number, always zero rtl_digest_MD5( &m_aContext.Encryption.EncryptionKey[0], i+2, nMD5Sum, sizeof(nMD5Sum) ); // initialize the RC4 with the key - // key legth: see algoritm 3.1, step 4: (N+5) max 16 + // key length: see algorithm 3.1, step 4: (N+5) max 16 rtl_cipher_initARCFOUR( m_aCipher, rtl_Cipher_DirectionEncode, nMD5Sum, m_nRC4KeyLength, NULL, 0 ); } } diff --git a/vcl/source/window/winproc.cxx b/vcl/source/window/winproc.cxx index 7fb2cf8092ce..5ab7b975561c 100644 --- a/vcl/source/window/winproc.cxx +++ b/vcl/source/window/winproc.cxx @@ -1454,7 +1454,7 @@ static bool ImplHandleWheelEvent( Window* pWindow, const SalWheelMouseEvent& rEv bRet = ImplCallWheelCommand( pMouseWindow, aRelMousePos, &aWheelData ); } - // if the commad was not handled try the focus window + // if the command was not handled try the focus window if ( bRet ) { Window* pFocusWindow = pWindow->ImplGetWindowImpl()->mpFrameData->mpFocusWin; |