diff options
author | Korrawit Pruegsanusak <detective.conan.1412@gmail.com> | 2011-06-12 16:40:20 +0700 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2011-06-12 16:44:43 -0500 |
commit | 655d930476045a2de7f3ead4768bb75df8cf7c82 (patch) | |
tree | 9f240c0f4ef720b1899d5797ac1fcdffe5be2f40 /oox/source | |
parent | 0fa6dbcdab49b79852c451c173867fac0d8f213a (diff) |
Code cleanup
* Remove dead code
* Fix comment typos
Released under LGPLv3+/MPL
Diffstat (limited to 'oox/source')
-rw-r--r-- | oox/source/core/filterdetect.cxx | 2 | ||||
-rw-r--r-- | oox/source/drawingml/customshapeproperties.cxx | 2 | ||||
-rw-r--r-- | oox/source/drawingml/diagram/layoutnodecontext.cxx | 2 | ||||
-rw-r--r-- | oox/source/export/preset-definitions-to-shape-types.pl | 2 | ||||
-rw-r--r-- | oox/source/export/vmlexport.cxx | 2 | ||||
-rw-r--r-- | oox/source/xls/formulaparser.cxx | 2 | ||||
-rw-r--r-- | oox/source/xls/stylesbuffer.cxx | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/oox/source/core/filterdetect.cxx b/oox/source/core/filterdetect.cxx index 98040dc60ace..5c01b2e0f8f0 100644 --- a/oox/source/core/filterdetect.cxx +++ b/oox/source/core/filterdetect.cxx @@ -549,7 +549,7 @@ Reference< XInputStream > FilterDetect::extractUnencryptedPackage( MediaDescript BinaryXInputStream aInfoStrm( xEncryptionInfo, true ); bool bValidInfo = lclReadEncryptionInfo( aEncryptInfo, aInfoStrm ); - // check flags and agorithm IDs, requiered are AES128 and SHA-1 + // check flags and algorithm IDs, required are AES128 and SHA-1 bool bImplemented = bValidInfo && getFlag( aEncryptInfo.mnFlags, ENCRYPTINFO_CRYPTOAPI ) && getFlag( aEncryptInfo.mnFlags, ENCRYPTINFO_AES ) && diff --git a/oox/source/drawingml/customshapeproperties.cxx b/oox/source/drawingml/customshapeproperties.cxx index 233066377818..23e2e19a546d 100644 --- a/oox/source/drawingml/customshapeproperties.cxx +++ b/oox/source/drawingml/customshapeproperties.cxx @@ -2023,7 +2023,7 @@ if ( maShapePresetType.equals( sWedgeRoundedRectCallout ) ) { // to determine the correct adjustment handle that should be updated with the adjustment // position. here is the solution: the adjustment value that is used within the position // has to be updated, in case the position is a formula the first usage of a - // adjument value is decisive + // adjustment value is decisive if ( maAdjustHandleList[ i ].polar ) { aHandle[ PROP_Position ] <<= maAdjustHandleList[ i ].pos; diff --git a/oox/source/drawingml/diagram/layoutnodecontext.cxx b/oox/source/drawingml/diagram/layoutnodecontext.cxx index 45bd03024c94..3edf483555da 100644 --- a/oox/source/drawingml/diagram/layoutnodecontext.cxx +++ b/oox/source/drawingml/diagram/layoutnodecontext.cxx @@ -221,7 +221,7 @@ void SAL_CALL LayoutNodeContext::endFastElement( ::sal_Int32 ) } /** convert the XML tag to a variable index in the array - * @param aTag the tag, wihout namespace + * @param aTag the tag, without namespace * @return the variable index. -1 is an error */ sal_Int32 LayoutNodeContext::tagToVarIdx( sal_Int32 aTag ) diff --git a/oox/source/export/preset-definitions-to-shape-types.pl b/oox/source/export/preset-definitions-to-shape-types.pl index c185a07cdce3..be53eb88d756 100644 --- a/oox/source/export/preset-definitions-to-shape-types.pl +++ b/oox/source/export/preset-definitions-to-shape-types.pl @@ -853,7 +853,7 @@ sub start_element( $% ) $path .= "x"; } elsif ( $element eq "pt" ) { - # rememeber the last position for the arcTo + # remember the last position for the arcTo $last_pos_x = value( $attr{'x'} ); $last_pos_y = value( $attr{'y'} ); diff --git a/oox/source/export/vmlexport.cxx b/oox/source/export/vmlexport.cxx index 1a317c14db0f..554d49faae53 100644 --- a/oox/source/export/vmlexport.cxx +++ b/oox/source/export/vmlexport.cxx @@ -102,7 +102,7 @@ void VMLExport::OpenContainer( sal_uInt16 nEscherContainer, int nRecInstance ) m_pShapeStyle->ensureCapacity( 200 ); - // postpone the ouput so that we are able to write even the elements + // postpone the output so that we are able to write even the elements // that we learn inside Commit() m_pSerializer->mark(); } diff --git a/oox/source/xls/formulaparser.cxx b/oox/source/xls/formulaparser.cxx index 7260144ab9ab..fa96869afadc 100644 --- a/oox/source/xls/formulaparser.cxx +++ b/oox/source/xls/formulaparser.cxx @@ -372,7 +372,7 @@ const ApiToken* FormulaFinalizer::findParameters( ParameterPosVector& rParams, void FormulaFinalizer::appendEmptyParameter( const FunctionInfo& rFuncInfo, size_t nParam ) { - // remeber old size of the token array + // remember old size of the token array size_t nTokenArraySize = maTokens.size(); switch( rFuncInfo.mnBiff12FuncId ) diff --git a/oox/source/xls/stylesbuffer.cxx b/oox/source/xls/stylesbuffer.cxx index 5daf7cebb9ef..df6d93c3f53c 100644 --- a/oox/source/xls/stylesbuffer.cxx +++ b/oox/source/xls/stylesbuffer.cxx @@ -212,7 +212,7 @@ const sal_uInt8 BIFF_FONTUNDERL_DOUBLE_ACC = 34; const sal_uInt16 BIFF_XF_LOCKED = 0x0001; const sal_uInt16 BIFF_XF_HIDDEN = 0x0002; const sal_uInt16 BIFF_XF_STYLE = 0x0004; -const sal_uInt16 BIFF_XF_STYLEPARENT = 0x0FFF; /// Syles don't have a parent. +const sal_uInt16 BIFF_XF_STYLEPARENT = 0x0FFF; /// Styles don't have a parent. const sal_uInt16 BIFF_XF_WRAPTEXT = 0x0008; /// Automatic line break. const sal_uInt16 BIFF_XF_JUSTLASTLINE = 0x0080; const sal_uInt16 BIFF_XF_SHRINK = 0x0010; /// Shrink to fit into cell. |