From 0658889bcdc54e63aa5966aa9936bd043d3a8b35 Mon Sep 17 00:00:00 2001 From: Philipp Weissenbacher Date: Thu, 2 Oct 2014 11:54:57 +0200 Subject: [PATCH] fdo#39468 Make forms/ German comments clean Change-Id: Iec24928324bec1caee65ca37cbf0fb5b66e6975e Reviewed-on: https://gerrit.libreoffice.org/11760 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- forms/source/misc/InterfaceContainer.cxx | 24 ++++++++++++------------ forms/source/misc/services.cxx | 12 ++++++------ 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/forms/source/misc/InterfaceContainer.cxx b/forms/source/misc/InterfaceContainer.cxx index ea989e3e67ee..5b0efafedfb4 100644 --- a/forms/source/misc/InterfaceContainer.cxx +++ b/forms/source/misc/InterfaceContainer.cxx @@ -334,7 +334,7 @@ void SAL_CALL OInterfaceContainer::writeEvents(const Referencewrite(_rxOutStream); - // feststellen der Laenge + // Determine length nObjLen = xMark->offsetToMark(nMark) - 4; xMark->jumpToMark(nMark); _rxOutStream->writeLong(nObjLen); @@ -441,7 +441,7 @@ void SAL_CALL OInterfaceContainer::readEvents(const Reference xMark(_rxInStream, UNO_QUERY); sal_Int32 nObjLen = _rxInStream->readLong(); if (nObjLen) @@ -455,7 +455,7 @@ void SAL_CALL OInterfaceContainer::readEvents(const ReferencedeleteMark(nMark); } - // Attachement lesen + // Read Attachement if ( m_xEventAttacher.is() ) { OInterfaceArray::const_iterator aAttach = m_aItems.begin(); @@ -475,7 +475,7 @@ void SAL_CALL OInterfaceContainer::write( const Reference< XObjectOutputStream > ::osl::MutexGuard aGuard( m_rMutex ); sal_Int32 nLen = m_aItems.size(); - // schreiben der laenge + // Write length _rxOutStream->writeLong(nLen); if (nLen) @@ -483,7 +483,7 @@ void SAL_CALL OInterfaceContainer::write( const Reference< XObjectOutputStream > // 1. Version _rxOutStream->writeShort(0x0001); - // 2. Objekte + // 2. Objects for (sal_Int32 i = 0; i < nLen; i++) { Reference xObj(m_aItems[i], UNO_QUERY); @@ -537,7 +537,7 @@ void SAL_CALL OInterfaceContainer::read( const Reference< XObjectInputStream >& while (getCount()) removeByIndex(0); - // Schreibt nur in Abhaengigkeit der Laenge + // Only writes depending on the length sal_Int32 nLen = _rxInStream->readLong(); if (nLen) @@ -545,7 +545,7 @@ void SAL_CALL OInterfaceContainer::read( const Reference< XObjectInputStream >& // 1. Version sal_uInt16 nVersion = _rxInStream->readShort(); (void)nVersion; - // 2. Objekte + // 2. Objects for (sal_Int32 i = 0; i < nLen; i++) { Reference xObj; @@ -564,11 +564,11 @@ void SAL_CALL OInterfaceContainer::read( const Reference< XObjectInputStream >& } catch(const Exception&) { - // unsere Map leeren + // Clear the map while (!m_aItems.empty()) removeElementsNoEvents(0); - // und die Exception nach aussen + // Rethrow the exception throw; } @@ -580,9 +580,9 @@ void SAL_CALL OInterfaceContainer::read( const Reference< XObjectInputStream >& implInsert( m_aItems.size(), // position xElement, // element to insert - false, // no event attacher manager handling + false, // no event attacher manager handling NULL, // not yet approved - let implInsert do it - true // fire the event + true // fire the event ); } catch( const Exception& ) @@ -829,7 +829,7 @@ void OInterfaceContainer::implInsert(sal_Int32 _nIndex, const Reference< XProper _rxElement->addPropertyChangeListener(PROPERTY_NAME, this); // insert the object into our internal structures - if (_nIndex > (sal_Int32)m_aItems.size()) // ermitteln des tatsaechlichen Indexs + if (_nIndex > (sal_Int32)m_aItems.size()) // Calculate the actual index { _nIndex = m_aItems.size(); m_aItems.push_back( pElementMetaData->xInterface ); diff --git a/forms/source/misc/services.cxx b/forms/source/misc/services.cxx index 189cf35498a0..b275b1ee5c31 100644 --- a/forms/source/misc/services.cxx +++ b/forms/source/misc/services.cxx @@ -29,17 +29,17 @@ using namespace ::com::sun::star::uno; using namespace ::com::sun::star::lang; using namespace ::com::sun::star::registry; -static Sequence< OUString > s_aClassImplementationNames; +static Sequence< OUString > s_aClassImplementationNames; static Sequence > s_aClassServiceNames; -static Sequence s_aFactories; - // need to use sal_Int64 instead of ComponentInstantiation, as ComponentInstantiation has no cppuType, so - // it can't be used with sequences +// need to use sal_Int64 instead of ComponentInstantiation, as ComponentInstantiation has no cppuType, so +// it can't be used with sequences +static Sequence s_aFactories; void registerClassInfo( - const OUString& _rClassImplName, // the ImplName of the class + const OUString& _rClassImplName, // the ImplName of the class const Sequence< OUString >& _rServiceNames, // the services supported by this class - ::cppu::ComponentInstantiation _pCreateFunction // the method for instantiating such a class + ::cppu::ComponentInstantiation _pCreateFunction // the method for instantiating such a class ) { sal_Int32 nCurrentLength = s_aClassImplementationNames.getLength();