From 00d2eeebc8b1842c4ab7a544552f259208ee0e25 Mon Sep 17 00:00:00 2001 From: Andrea Gelmini Date: Tue, 29 Sep 2015 17:50:10 +0200 Subject: Fix typos Change-Id: Iaa9dd3f02f21947742643349d3b878126017477d Reviewed-on: https://gerrit.libreoffice.org/18947 Reviewed-by: Samuel Mehrbrodt Tested-by: Samuel Mehrbrodt --- editeng/source/misc/hangulhanja.cxx | 2 +- editeng/source/misc/svxacorr.cxx | 4 ++-- editeng/source/outliner/outleeng.hxx | 2 +- editeng/source/rtf/svxrtf.cxx | 2 +- editeng/source/uno/unofored.cxx | 2 +- embeddedobj/source/msole/advisesink.cxx | 2 +- embeddedobj/source/msole/xdialogcreator.cxx | 2 +- extensions/source/dbpilots/controlwizard.cxx | 2 +- extensions/source/ole/oleobjw.cxx | 6 +++--- extensions/source/ole/oleobjw.hxx | 2 +- extensions/source/propctrlr/eventhandler.cxx | 4 ++-- extensions/source/propctrlr/formcomponenthandler.hxx | 4 ++-- extensions/source/propctrlr/selectlabeldialog.cxx | 2 +- extensions/source/update/check/updatecheckconfig.hxx | 2 +- filter/qa/complex/filter/detection/typeDetection/Helper.java | 2 +- 15 files changed, 20 insertions(+), 20 deletions(-) diff --git a/editeng/source/misc/hangulhanja.cxx b/editeng/source/misc/hangulhanja.cxx index 885525c5d1a0..34cee4ac8444 100644 --- a/editeng/source/misc/hangulhanja.cxx +++ b/editeng/source/misc/hangulhanja.cxx @@ -85,7 +85,7 @@ namespace editeng const vcl::Font* m_pTargetFont; // target font of new replacement text sal_Int32 m_nConvOptions; // text conversion options (as used by 'getConversions') bool m_bIsInteractive; // specifies if the conversion requires user interaction - // (and likeley a specialised dialog) or if it is to run + // (and likely a specialised dialog) or if it is to run // automatically without any user interaction. // True for Hangul / Hanja conversion // False for Chinese simlified / traditional conversion diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx index 4f1cde233efa..912968a96e68 100644 --- a/editeng/source/misc/svxacorr.cxx +++ b/editeng/source/misc/svxacorr.cxx @@ -1055,7 +1055,7 @@ bool SvxAutoCorrect::FnCapitalStartSentence( SvxAutoCorrDoc& rDoc, sChar = rCC.titlecase(sChar); //see fdo#56740 bool bRet = sChar[0] != cSave && rDoc.ReplaceRange( nSttPos, 1, sChar ); - // Parahaps someone wants to have the word + // Perhaps someone wants to have the word if( bRet && SaveWordCplSttLst & nFlags ) rDoc.SaveCpltSttWord( CapitalStartSentence, nSttPos, sWord, cSave ); @@ -2751,7 +2751,7 @@ SvxAutocorrWordList::Content SvxAutocorrWordList::getSortedContent() const // convert from hash to set permanantly if ( mpImpl->maSet.empty() ) { - // This beasty has some O(N log(N)) in a terribly slow ICU collate fn. + // This beast has some O(N log(N)) in a terribly slow ICU collate fn. for (AutocorrWordHashType::const_iterator it = mpImpl->maHash.begin(); it != mpImpl->maHash.end(); ++it) mpImpl->maSet.insert( it->second ); mpImpl->maHash.clear(); diff --git a/editeng/source/outliner/outleeng.hxx b/editeng/source/outliner/outleeng.hxx index 1ac87acd176a..12d5005ece50 100644 --- a/editeng/source/outliner/outleeng.hxx +++ b/editeng/source/outliner/outleeng.hxx @@ -30,7 +30,7 @@ class OutlinerEditEng : public EditEngine protected: - // derived from EditEngine. Allows Outliner objetcs to provide + // derived from EditEngine. Allows Outliner objects to provide // bullet access to the EditEngine. virtual const SvxNumberFormat* GetNumberFormat( sal_Int32 nPara ) const SAL_OVERRIDE; diff --git a/editeng/source/rtf/svxrtf.cxx b/editeng/source/rtf/svxrtf.cxx index 1e11a0f30570..a7c81ae7211b 100644 --- a/editeng/source/rtf/svxrtf.cxx +++ b/editeng/source/rtf/svxrtf.cxx @@ -918,7 +918,7 @@ void SvxRTFParser::AttrGroupEnd() // process the current, delete from Stack // at the beginning of a paragraph? Move back one position sal_Int32 nNd = pInsPos->GetNodeIdx(); MovePos(false); - // if can not move backward then later dont move forward ! + // if can not move backward then later don't move forward ! bCrsrBack = nNd != pInsPos->GetNodeIdx(); } diff --git a/editeng/source/uno/unofored.cxx b/editeng/source/uno/unofored.cxx index f8de955a724f..0d90aa959ebd 100644 --- a/editeng/source/uno/unofored.cxx +++ b/editeng/source/uno/unofored.cxx @@ -216,7 +216,7 @@ SfxItemState GetSvxEditEngineItemState( EditEngine& rEditEngine, const ESelectio // if we already found an item if( pParaItem ) { - // ... and its different to this one than the state is dont care + // ... and its different to this one than the state is don't care if(*pParaItem != *(i->pAttr)) return SfxItemState::DONTCARE; } diff --git a/embeddedobj/source/msole/advisesink.cxx b/embeddedobj/source/msole/advisesink.cxx index 10a5fee37d34..2f837ed93cb5 100644 --- a/embeddedobj/source/msole/advisesink.cxx +++ b/embeddedobj/source/msole/advisesink.cxx @@ -101,7 +101,7 @@ STDMETHODIMP_(void) OleWrapperAdviseSink::OnRename(LPMONIKER) STDMETHODIMP_(void) OleWrapperAdviseSink::OnSave() { // TODO: ??? - // The object knows about document saving already since it contolls it as ClienSite + // The object knows about document saving already since it controls it as ClienSite // other interested listeners must be registered for the object } diff --git a/embeddedobj/source/msole/xdialogcreator.cxx b/embeddedobj/source/msole/xdialogcreator.cxx index 1f425d6d7770..7600a95461b8 100644 --- a/embeddedobj/source/msole/xdialogcreator.cxx +++ b/embeddedobj/source/msole/xdialogcreator.cxx @@ -319,7 +319,7 @@ embed::InsertedObjectInfo SAL_CALL MSOLEDialogObjectCreator::createInstanceInitF aObjectInfo.Object = xResult; - // TODO/LATER: in case of iconifie object the icon should be stored in aObjectInfo + // TODO/LATER: in case of iconify object the icon should be stored in aObjectInfo OSL_ENSURE( aObjectInfo.Object.is(), "No object was created!\n" ); if ( !aObjectInfo.Object.is() ) diff --git a/extensions/source/dbpilots/controlwizard.cxx b/extensions/source/dbpilots/controlwizard.cxx index ab334d0a1d75..2749fd0b85c8 100644 --- a/extensions/source/dbpilots/controlwizard.cxx +++ b/extensions/source/dbpilots/controlwizard.cxx @@ -517,7 +517,7 @@ namespace dbp // the shape of the control implDetermineShape(); - // get the columns of the object the settins refer to + // get the columns of the object the settings refer to Reference< XNameAccess > xColumns; if (m_aContext.xForm.is()) diff --git a/extensions/source/ole/oleobjw.cxx b/extensions/source/ole/oleobjw.cxx index 30910daf325c..794cb25238bc 100644 --- a/extensions/source/ole/oleobjw.cxx +++ b/extensions/source/ole/oleobjw.cxx @@ -142,7 +142,7 @@ Any IUnknownWrapper_Impl::queryInterface(const Type& t) // Put or Get property, the implementation code has no business guessing that, it's up to the caller to decide that. Worse XDirectInvocation duplicates lots of code. // XAutomationInvocation provides separate calls for put& get // properties. Note: Currently the basic runtime doesn't call put properties directly, it should... after all the basic runtime should know whether it is calling a put or get property. - // For the moment for ease of merging we will let the XDirectInvoke and XAuthomationInvocation interfaces stay side by side ( and for the momemnt at least I would prefer the basic + // For the moment for ease of merging we will let the XDirectInvoke and XAuthomationInvocation interfaces stay side by side (and for the moment at least I would prefer the basic // runtime to call XAutomationInvocation instead of XDirectInvoke return WeakImplHelper::queryInterface(t); @@ -658,7 +658,7 @@ sal_Bool SAL_CALL IUnknownWrapper_Impl::hasProperty( const OUString& aName ) VarDesc aVarDesc(pInfo); getPropDesc(aName, & aDescGet, & aDescPut, & aVarDesc); - // we should probably just check the funckind + // we should probably just check the func kind // basic has been modified to handle properties ( 'get' ) props at // least with parameters // additionally you can call invoke(Get|Set)Property on the bridge @@ -2023,7 +2023,7 @@ Any IUnknownWrapper_Impl::invokeWithDispIdComTlb(FuncDesc& aFuncDesc, int outParamIndex=0; for (int paramIndex = 0; paramIndex < nUnoArgs; paramIndex ++) { - //Determine the index within the method sinature + //Determine the index within the method signature int realParamIndex = paramIndex; int revParamIndex = dispparams.cArgs - paramIndex - 1; if (Params[paramIndex].getValueType() diff --git a/extensions/source/ole/oleobjw.hxx b/extensions/source/ole/oleobjw.hxx index de287dbe4a78..161af47af2e9 100644 --- a/extensions/source/ole/oleobjw.hxx +++ b/extensions/source/ole/oleobjw.hxx @@ -235,7 +235,7 @@ protected: CComPtr m_spUnknown; CComPtr m_spDispatch; OUString m_sTypeName; // is "" ( not initialised ), "IDispatch" ( we have no idea ) or "SomeLibrary.SomeTypeName" if we managed to get a type - /** This value is set dureing XInitialization::initialize. It indicates that the COM interface + /** This value is set during XInitialization::initialize. It indicates that the COM interface was transported as VT_DISPATCH in a VARIANT rather then a VT_UNKNOWN */ sal_Bool m_bOriginalDispatch; diff --git a/extensions/source/propctrlr/eventhandler.cxx b/extensions/source/propctrlr/eventhandler.cxx index d429adc09c1f..552a4af2155f 100644 --- a/extensions/source/propctrlr/eventhandler.cxx +++ b/extensions/source/propctrlr/eventhandler.cxx @@ -616,9 +616,9 @@ namespace pcr // The only exception is the user pressing "DEL" while the control has the focus, in this case, we reset the // control content to an empty string. So this is the only scenario where this method is allowed to be called. - // Striclty, we would be able to convert the display value to a property value, + // Strictly, we would be able to convert the display value to a property value, // using the "name (location, language)" format we used in convertToControlValue. However, - // there is no need for this code ... + // there is no need for this code... aAssignedScript.ScriptCode = sNewScriptCode; return makeAny( aAssignedScript ); diff --git a/extensions/source/propctrlr/formcomponenthandler.hxx b/extensions/source/propctrlr/formcomponenthandler.hxx index 32025fc812d4..5533849d2c0e 100644 --- a/extensions/source/propctrlr/formcomponenthandler.hxx +++ b/extensions/source/propctrlr/formcomponenthandler.hxx @@ -171,7 +171,7 @@ namespace pcr If the component is a RowSet itself, it's returned directly. Else, the parent is examined for the XRowSet interface. If the parent is no XRowSet, then a check is made whether our component is a grid control column, and if so, - the parent of the grid control is examied for the XRowSet interace. + the parent of the grid control is examined for the XRowSet interace. Normally, at least one of those methods should succeed. */ @@ -245,7 +245,7 @@ namespace pcr const ::com::sun::star::uno::Reference< ::com::sun::star::inspection::XPropertyControlFactory >& _rxControlFactory ) const; - /** displays a datbase-related error to the user + /** displays a database-related error to the user */ void impl_displaySQLError_nothrow( const ::dbtools::SQLExceptionInfo& _rErrorDescriptor ) const; diff --git a/extensions/source/propctrlr/selectlabeldialog.cxx b/extensions/source/propctrlr/selectlabeldialog.cxx index 2f2b83ad8eca..feeeaa23fc14 100644 --- a/extensions/source/propctrlr/selectlabeldialog.cxx +++ b/extensions/source/propctrlr/selectlabeldialog.cxx @@ -95,7 +95,7 @@ namespace pcr // and insert all entries below this root into the listbox if (xSearch.is()) { - // check which service the allowed components must suppport + // check which service the allowed components must support sal_Int16 nClassId = 0; try { nClassId = ::comphelper::getINT16(m_xControlModel->getPropertyValue(PROPERTY_CLASSID)); } catch(...) { } m_sRequiredService = (FormComponentType::RADIOBUTTON == nClassId) ? OUString(SERVICE_COMPONENT_GROUPBOX) : OUString(SERVICE_COMPONENT_FIXEDTEXT); diff --git a/extensions/source/update/check/updatecheckconfig.hxx b/extensions/source/update/check/updatecheckconfig.hxx index 5134f4edafa6..ec4437b29db8 100644 --- a/extensions/source/update/check/updatecheckconfig.hxx +++ b/extensions/source/update/check/updatecheckconfig.hxx @@ -98,7 +98,7 @@ public: const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext, const ::rtl::Reference< UpdateCheckConfigListener >& rListener = ::rtl::Reference< UpdateCheckConfigListener >()); - // Should really implement ROModel .. + // Should really implement ROModel... bool isAutoCheckEnabled() const; bool isAutoDownloadEnabled() const; OUString getUpdateEntryVersion() const; diff --git a/filter/qa/complex/filter/detection/typeDetection/Helper.java b/filter/qa/complex/filter/detection/typeDetection/Helper.java index e8e5a8171086..c51e2c8941cd 100644 --- a/filter/qa/complex/filter/detection/typeDetection/Helper.java +++ b/filter/qa/complex/filter/detection/typeDetection/Helper.java @@ -40,7 +40,7 @@ import util.utils; /** Helper class for "TypeDetection" - * This class do file hanlding. + * This class do file handling. */ public class Helper { -- cgit