Fix typos in comments in ure/cppuhelper

Signed-off-by: Laurent Charrière <lcharriere@gmail.com>
This commit is contained in:
Laurent Charrière
2010-10-13 22:28:41 -07:00
committed by Michael Meeks
parent fee1a2b79e
commit 7b5a50e4ed
9 changed files with 25 additions and 25 deletions

View File

@@ -45,7 +45,7 @@ class SAL_NO_VTABLE WeakComponentImplHelperBase
, public ::com::sun::star::lang::XComponent , public ::com::sun::star::lang::XComponent
{ {
protected: protected:
/** boradcast helper for disposing events /** broadcast helper for disposing events
*/ */
::cppu::OBroadcastHelper rBHelper; ::cppu::OBroadcastHelper rBHelper;

View File

@@ -43,7 +43,7 @@ namespace cppu
{ {
/** Struct used for inline template implementation helpers: type entries. /** Struct used for inline template implementation helpers: type entries.
Not for plublic use. Not for public use.
@internal @internal
*/ */
struct Type_Offset struct Type_Offset
@@ -56,7 +56,7 @@ struct Type_Offset
typelib_InterfaceTypeDescription * pTD; typelib_InterfaceTypeDescription * pTD;
}; };
/** Struct used for inline template implementation helpers: class data of implementation. /** Struct used for inline template implementation helpers: class data of implementation.
Not for plublic use. Not for public use.
@internal @internal
*/ */
struct ClassDataBase struct ClassDataBase
@@ -101,7 +101,7 @@ struct ClassDataBase
There will be versions of this struct with varying arType2Offset[] array sizes, each of which There will be versions of this struct with varying arType2Offset[] array sizes, each of which
is binary compatible with this one to be casted and used uniform. The size of the varying array is binary compatible with this one to be casted and used uniform. The size of the varying array
is set in ClassDataBase::nType2Offset (base class). is set in ClassDataBase::nType2Offset (base class).
Not for plublic use. Not for public use.
@internal @internal
*/ */
struct ClassData : public ClassDataBase struct ClassData : public ClassDataBase
@@ -136,7 +136,7 @@ struct ClassData : public ClassDataBase
*/ */
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes()
SAL_THROW( () ); SAL_THROW( () );
/** Gets the class id of implemtation supporting com.sun.star.lang.XTypeProvider /** Gets the class id of implementation supporting com.sun.star.lang.XTypeProvider
@return class identifier (sequence< byte >) @return class identifier (sequence< byte >)
*/ */

View File

@@ -24,8 +24,8 @@
* for a copy of the LGPLv3 License. * for a copy of the LGPLv3 License.
* *
************************************************************************/ ************************************************************************/
#ifndef _CPPUHELPER_IMPLEMENATIONENTRY_HXX_ #ifndef _CPPUHELPER_IMPLEMENTATIONENTRY_HXX_
#define _CPPUHELPER_IMPLEMENATIONENTRY_HXX_ #define _CPPUHELPER_IMPLEMENTATIONENTRY_HXX_
#include <cppuhelper/factory.hxx> #include <cppuhelper/factory.hxx>
@@ -36,21 +36,21 @@ namespace cppu
*/ */
struct ImplementationEntry struct ImplementationEntry
{ {
/** Function, that creates an instance of the implemenation /** Function that creates an instance of the implementation
*/ */
ComponentFactoryFunc create; ComponentFactoryFunc create;
/** Function, that returns the implemenation-name of the implemenation /** Function that returns the implementation-name of the implementation
(same as XServiceInfo.getImplementationName() ). (same as XServiceInfo.getImplementationName() ).
*/ */
rtl::OUString ( SAL_CALL * getImplementationName )(); rtl::OUString ( SAL_CALL * getImplementationName )();
/** Function, that returns all supported servicenames of the implemenation /** Function that returns all supported servicenames of the implementation
( same as XServiceInfo.getSupportedServiceNames() ). ( same as XServiceInfo.getSupportedServiceNames() ).
*/ */
com::sun::star::uno::Sequence< rtl::OUString > ( SAL_CALL * getSupportedServiceNames ) (); com::sun::star::uno::Sequence< rtl::OUString > ( SAL_CALL * getSupportedServiceNames ) ();
/** Function, that creates a SingleComponentFactory. /** Function that creates a SingleComponentFactory.
*/ */
::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleComponentFactory > ::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleComponentFactory >
( SAL_CALL * createFactory )( ( SAL_CALL * createFactory )(
@@ -59,7 +59,7 @@ struct ImplementationEntry
::com::sun::star::uno::Sequence< ::rtl::OUString > const & rServiceNames, ::com::sun::star::uno::Sequence< ::rtl::OUString > const & rServiceNames,
rtl_ModuleCount * pModCount ); rtl_ModuleCount * pModCount );
/** The shared-library module-counter of the implemenation. Maybe 0. The module-counter /** The shared-library module-counter of the implementation. Maybe 0. The module-counter
is used during by the createFactory()-function. is used during by the createFactory()-function.
*/ */
rtl_ModuleCount * moduleCounter; rtl_ModuleCount * moduleCounter;
@@ -78,7 +78,7 @@ struct ImplementationEntry
This is a reference to the registry key, into which the implementation This is a reference to the registry key, into which the implementation
data shall be written to. data shall be written to.
@param entries Each element of the entries-array must contains a function pointer @param entries Each element of the entries-array must contains a function pointer
table for registering an implemenation. The end of the array table for registering an implementation. The end of the array
must be marked with a 0 entry in the create-function. must be marked with a 0 entry in the create-function.
@return sal_True, if all implementations could be registered, otherwise sal_False. @return sal_True, if all implementations could be registered, otherwise sal_False.
*/ */

View File

@@ -202,7 +202,7 @@ protected:
private: private:
void init( sal_Bool bSorted ) SAL_THROW( () ); void init( sal_Bool bSorted ) SAL_THROW( () );
/** The sequence generstet from the pProperties array. */ /** The sequence generated from the pProperties array. */
::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property > aInfos; ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property > aInfos;
/** /**
@@ -293,8 +293,8 @@ public:
SAL_THROW( () ); SAL_THROW( () );
/** /**
Call disposing on all object in the container that Call disposing on all objects in the container that
support XEventListener. Than clear the container. support XEventListener. Then clear the container.
*/ */
void SAL_CALL disposeAndClear( const ::com::sun::star::lang::EventObject & rEvt ) SAL_THROW( () ); void SAL_CALL disposeAndClear( const ::com::sun::star::lang::EventObject & rEvt ) SAL_THROW( () );
/** /**

View File

@@ -46,10 +46,10 @@ namespace cppu {
/** /**
Standardfunction to create an XIdlClass for a component. Standard function to create an XIdlClass for a component.
There is a function for each number of supported interfaces up to 10. There is a function for each number of supported interfaces up to 10.
Since the switch to the final component model, there are no use cases anymore, where Since the switch to the final component model, there are no use cases anymore where
these functions should be used. Instead use the implementation helpers directly these functions should be used. Instead use the implementation helpers directly
(see cppuhelper/implbase1.hxx). (see cppuhelper/implbase1.hxx).

View File

@@ -211,7 +211,7 @@ void OComponentHelper::dispose()
} }
else else
{ {
// in a multithreaded environment, it can't be avoided, // in a multithreaded environment, it can't be avoided
// that dispose is called twice. // that dispose is called twice.
// However this condition is traced, because it MAY indicate an error. // However this condition is traced, because it MAY indicate an error.
OSL_TRACE( "OComponentHelper::dispose() - dispose called twice" ); OSL_TRACE( "OComponentHelper::dispose() - dispose called twice" );

View File

@@ -864,7 +864,7 @@ Reference< XInterface > ORegistryFactoryHelper::createModuleFactory()
// one implementation found -> try to activate // one implementation found -> try to activate
aLocation = xLocationKey->getAsciiValue(); aLocation = xLocationKey->getAsciiValue();
// search protocol delemitter // search protocol delimiter
sal_Int32 nPos = aLocation.indexOf( sal_Int32 nPos = aLocation.indexOf(
OUString( RTL_CONSTASCII_USTRINGPARAM("://") ) ); OUString( RTL_CONSTASCII_USTRINGPARAM("://") ) );
if( nPos != -1 ) if( nPos != -1 )

View File

@@ -330,7 +330,7 @@ void OInterfaceContainerHelper::disposeAndClear( const EventObject & rEvt ) SAL_
OSL_ENSURE( !bIsList || bInUse, "OInterfaceContainerHelper not in use" ); OSL_ENSURE( !bIsList || bInUse, "OInterfaceContainerHelper not in use" );
if( !bIsList && pData ) if( !bIsList && pData )
((XInterface *)pData)->release(); ((XInterface *)pData)->release();
// set the member to null, the iterator delete the values // set the member to null, use the iterator to delete the values
pData = NULL; pData = NULL;
bIsList = sal_False; bIsList = sal_False;
bInUse = sal_False; bInUse = sal_False;
@@ -346,7 +346,7 @@ void OInterfaceContainerHelper::disposeAndClear( const EventObject & rEvt ) SAL_
catch ( RuntimeException & ) catch ( RuntimeException & )
{ {
// be robust, if e.g. a remote bridge has disposed already. // be robust, if e.g. a remote bridge has disposed already.
// there is no way, to delegate the error to the caller :o(. // there is no way to delegate the error to the caller :o(.
} }
} }
} }
@@ -360,7 +360,7 @@ void OInterfaceContainerHelper::clear() SAL_THROW( () )
OSL_ENSURE( !bIsList || bInUse, "OInterfaceContainerHelper not in use" ); OSL_ENSURE( !bIsList || bInUse, "OInterfaceContainerHelper not in use" );
if( !bIsList && pData ) if( !bIsList && pData )
((XInterface *)pData)->release(); ((XInterface *)pData)->release();
// set the member to null, the iterator delete the values // set the member to null, use the iterator to delete the values
pData = 0; pData = 0;
bIsList = sal_False; bIsList = sal_False;
bInUse = sal_False; bInUse = sal_False;

View File

@@ -231,8 +231,8 @@ void OPropertySetHelper::disposing() SAL_THROW( () )
EventObject aEvt; EventObject aEvt;
aEvt.Source = rSource; aEvt.Source = rSource;
// inform all listeners to reelease this object // inform all listeners to release this object
// The listener container are automaticly cleared // The listener containers are automatically cleared
aBoundLC.disposeAndClear( aEvt ); aBoundLC.disposeAndClear( aEvt );
aVetoableLC.disposeAndClear( aEvt ); aVetoableLC.disposeAndClear( aEvt );
} }