summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorStefan Knorr (astron) <heinzlesspam@gmail.com>2012-03-10 21:58:25 +0100
committerStefan Knorr (astron) <heinzlesspam@gmail.com>2012-03-10 22:00:56 +0100
commit5bec57a0b784a3bc8a181705f04f7af53ca4e04b (patch)
tree122d8069e253d98652b6d58cbd878af26c9aaa92 /comphelper
parentcaacafe4dbd3283a08c558104458d5b61c0e0743 (diff)
Correct some mistranslated comments
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/inc/comphelper/oslfile2streamwrap.hxx4
-rw-r--r--comphelper/source/container/container.cxx6
-rw-r--r--comphelper/source/eventattachermgr/eventattachermgr.cxx6
-rw-r--r--comphelper/source/property/propagg.cxx2
4 files changed, 9 insertions, 9 deletions
diff --git a/comphelper/inc/comphelper/oslfile2streamwrap.hxx b/comphelper/inc/comphelper/oslfile2streamwrap.hxx
index 64ebca65d7df..f43297b28b43 100644
--- a/comphelper/inc/comphelper/oslfile2streamwrap.hxx
+++ b/comphelper/inc/comphelper/oslfile2streamwrap.hxx
@@ -42,7 +42,7 @@ namespace comphelper
//==================================================================
// FmUnoIOStream,
-// Stream to read and write from data read from a file
+// Stream to read and write data, based on File
//==================================================================
class COMPHELPER_DLLPUBLIC OSLInputStreamWrapper : public ::cppu::WeakImplHelper1<stario::XInputStream>
{
@@ -63,7 +63,7 @@ public:
//==================================================================
// FmUnoOutStream,
-// sync data for the files
+// data sink for the files
//==================================================================
class OSLOutputStreamWrapper : public ::cppu::WeakImplHelper1<stario::XOutputStream>
{
diff --git a/comphelper/source/container/container.cxx b/comphelper/source/container/container.cxx
index d3012c27941d..527405943a98 100644
--- a/comphelper/source/container/container.cxx
+++ b/comphelper/source/container/container.cxx
@@ -91,18 +91,18 @@ IndexAccessIterator::~IndexAccessIterator() {}
xContainerAccess = ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexAccess>(xParent, ::com::sun::star::uno::UNO_QUERY);
OSL_ENSURE(xContainerAccess.is(), "IndexAccessIterator::Next : a content has an invalid parent !");
- // Update the search loop index
+ // Remove the index that SearchLoop had within this parent from my stack
sal_Int32 nOldSearchChildIndex = m_arrChildIndizies[m_arrChildIndizies.size() - 1];
m_arrChildIndizies.pop_back();
if (nOldSearchChildIndex < xContainerAccess->getCount() - 1)
{ // Move to the right in this row
++nOldSearchChildIndex;
- // and check the nex child
+ // and check the next child
::com::sun::star::uno::Any aElement(xContainerAccess->getByIndex(nOldSearchChildIndex));
xSearchLoop = *(::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface>*) aElement.getValue();
bCheckingStartingPoint = sal_False;
- // and update is position in the list.
+ // and update its position in the list.
m_arrChildIndizies.push_back((sal_Int32)nOldSearchChildIndex);
break;
diff --git a/comphelper/source/eventattachermgr/eventattachermgr.cxx b/comphelper/source/eventattachermgr/eventattachermgr.cxx
index 70a8ad87a155..b72cd2cea04c 100644
--- a/comphelper/source/eventattachermgr/eventattachermgr.cxx
+++ b/comphelper/source/eventattachermgr/eventattachermgr.cxx
@@ -789,7 +789,7 @@ void SAL_CALL ImplEventAttacherManager::write(const Reference< XObjectOutputStre
// Write out the version
OutStream->writeShort( 2 );
- // Position the position for length
+ // Remember position for length
sal_Int32 nObjLenMark = xMarkStream->createMark();
OutStream->writeLong( 0L );
@@ -838,8 +838,8 @@ void SAL_CALL ImplEventAttacherManager::read(const Reference< XObjectInputStream
// Read in the version
nVersion = InStream->readShort();
- // Next is the time since version 1.
- // Should this be deprecated in later versions?
+ // At first there's the data according to version 1 --
+ // this part needs to be kept in later versions.
sal_Int32 nLen = InStream->readLong();
// Position for comparative purposes
diff --git a/comphelper/source/property/propagg.cxx b/comphelper/source/property/propagg.cxx
index e18658281635..22305d4c8d84 100644
--- a/comphelper/source/property/propagg.cxx
+++ b/comphelper/source/property/propagg.cxx
@@ -301,7 +301,7 @@ sal_Int32 OPropertyArrayAggregationHelper::fillHandles(
n = n >> 1;
}
- // Number of the searched properties * the Log2 of the reamining properties
+ // (Number of properties yet to be found) * (Log2 of properties yet to be searched)
if( (nReqLen - i) * nLog >= pEnd - pCur )
{
// linear search is better