diff options
author | Philipp Weissenbacher <p.weissenbacher@gmail.com> | 2014-10-02 11:54:57 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-10-02 11:38:29 +0000 |
commit | 0658889bcdc54e63aa5966aa9936bd043d3a8b35 (patch) | |
tree | f0580384ebc74c7f24cf83be979c66baf95c2ce9 /forms | |
parent | d8be5a55760b01efa32708411c6e47fe74600edc (diff) |
fdo#39468 Make forms/ German comments clean
Change-Id: Iec24928324bec1caee65ca37cbf0fb5b66e6975e
Reviewed-on: https://gerrit.libreoffice.org/11760
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/misc/InterfaceContainer.cxx | 24 | ||||
-rw-r--r-- | 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 Reference<XObjectOutputStre if (xScripts.is()) xScripts->write(_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<XObjectInputStream { ::osl::MutexGuard aGuard( m_rMutex ); - // Scripting Info lesen + // Read scripting info Reference<XMarkableStream> xMark(_rxInStream, UNO_QUERY); sal_Int32 nObjLen = _rxInStream->readLong(); if (nObjLen) @@ -455,7 +455,7 @@ void SAL_CALL OInterfaceContainer::readEvents(const Reference<XObjectInputStream xMark->deleteMark(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<XPersistObject> 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<XPersistObject> 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<Sequence< OUString > > s_aClassServiceNames; -static Sequence<sal_Int64> 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<sal_Int64> 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(); |