summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorAndrea Gelmini <andrea.gelmini@gelma.net>2014-11-10 15:05:25 +0100
committerNoel Grandin <noelgrandin@gmail.com>2014-11-12 11:04:11 +0000
commitda40cac540e7d735edbe9069b3c8ec6af4530208 (patch)
treef2abda7281129e13f588c77b18780a7090c8405f /sot
parentbb437029c1e5331bcc3f8fb2fc87837142a52f33 (diff)
Fix common typos. No automatic tools. Handmade…
Change-Id: I1ab4e23b0539f8d39974787f226e57a21f96e959 Reviewed-on: https://gerrit.libreoffice.org/12164 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sot')
-rw-r--r--sot/source/sdstor/stgdir.cxx4
-rw-r--r--sot/source/sdstor/stgstrms.cxx8
-rw-r--r--sot/source/sdstor/ucbstorage.cxx10
3 files changed, 11 insertions, 11 deletions
diff --git a/sot/source/sdstor/stgdir.cxx b/sot/source/sdstor/stgdir.cxx
index 5db09aad52b1..3aeb6919f468 100644
--- a/sot/source/sdstor/stgdir.cxx
+++ b/sot/source/sdstor/stgdir.cxx
@@ -172,7 +172,7 @@ bool StgDirEntry::Store( StgDirStrm& rStrm )
void* pEntry = rStrm.GetEntry( nEntry, true );
if( !pEntry )
return false;
- // Do not store the current (maybe not commited) entry
+ // Do not store the current (maybe not committed) entry
aSave.Store( pEntry );
if( pLeft )
if( !static_cast<StgDirEntry*>(pLeft)->Store( rStrm ) )
@@ -614,7 +614,7 @@ bool StgDirEntry::Strm2Tmp()
sal_uLong n = 0;
if( pCurStrm )
{
- // It was already commited once
+ // It was already committed once
pTmpStrm = new StgTmpStrm;
if( pTmpStrm->GetError() == SVSTREAM_OK && pTmpStrm->Copy( *pCurStrm ) )
return true;
diff --git a/sot/source/sdstor/stgstrms.cxx b/sot/source/sdstor/stgstrms.cxx
index 5b5e5c3efdf5..b857c6de4888 100644
--- a/sot/source/sdstor/stgstrms.cxx
+++ b/sot/source/sdstor/stgstrms.cxx
@@ -917,7 +917,7 @@ sal_Int32 StgDataStrm::Read( void* pBuf, sal_Int32 n )
}
else
{
- // partial block read thru the cache.
+ // partial block read through the cache.
pPg = rIo.Get( nPage, false );
if( !pPg.is() )
break;
@@ -977,7 +977,7 @@ sal_Int32 StgDataStrm::Write( const void* pBuf, sal_Int32 n )
}
else
{
- // partial block read thru the cache.
+ // partial block read through the cache.
pPg = rIo.Get( nPage, false );
if( !pPg.is() )
break;
@@ -1051,7 +1051,7 @@ sal_Int32 StgSmallStrm::Read( void* pBuf, sal_Int32 n )
{
if( !pData || !pData->Pos2Page( nPage * nPageSize + nOffset ) )
break;
- // all reading thru the stream
+ // all reading through the stream
short nRes = (short) pData->Read( (sal_uInt8*)pBuf + nDone, nBytes );
nDone = nDone + nRes;
nPos += nRes;
@@ -1087,7 +1087,7 @@ sal_Int32 StgSmallStrm::Write( const void* pBuf, sal_Int32 n )
nBytes = (short) n;
if( nBytes )
{
- // all writing goes thru the stream
+ // all writing goes through the stream
sal_Int32 nDataPos = nPage * nPageSize + nOffset;
if ( !pData
|| ( pData->GetSize() < ( nDataPos + nBytes )
diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx
index 6f66c25b7621..6a3dcbb54263 100644
--- a/sot/source/sdstor/ucbstorage.cxx
+++ b/sot/source/sdstor/ucbstorage.cxx
@@ -444,7 +444,7 @@ public:
void Free();
bool Init();
bool Clear();
- sal_Int16 Commit(); // if modified and commited: transfer an XInputStream to the content
+ sal_Int16 Commit(); // if modified and committed: transfer an XInputStream to the content
bool Revert(); // discard all changes
BaseStorage* CreateStorage();// create an OLE Storage on the UCBStorageStream
sal_uLong GetSize();
@@ -1073,7 +1073,7 @@ sal_uLong UCBStorageStream_Impl::GetSize()
BaseStorage* UCBStorageStream_Impl::CreateStorage()
{
// create an OLEStorage on a SvStream ( = this )
- // it gets the root attribute because otherwise it would probably not write before my root is commited
+ // it gets the root attribute because otherwise it would probably not write before my root is committed
UCBStorageStream* pNewStorageStream = new UCBStorageStream( this );
Storage *pStorage = new Storage( *pNewStorageStream, m_bDirect );
@@ -1092,7 +1092,7 @@ sal_Int16 UCBStorageStream_Impl::Commit()
if ( m_bCommited || m_bIsOLEStorage || m_bDirect )
{
// modified streams with OLEStorages on it have autocommit; it is assumed that the OLEStorage
- // was commited as well ( if not opened in direct mode )
+ // was committed as well ( if not opened in direct mode )
if ( m_bModified )
{
@@ -1882,7 +1882,7 @@ void UCBStorage_Impl::ReadContent()
{
// any command wasn't executed successfully - not specified
if ( !( m_nMode & STREAM_WRITE ) )
- // if the folder was just inserted and not already commited, this is not an error!
+ // if the folder was just inserted and not already committed, this is not an error!
SetError( ERRCODE_IO_GENERAL );
}
catch (const RuntimeException&)
@@ -2819,7 +2819,7 @@ BaseStorage* UCBStorage::OpenStorage_Impl( const OUString& rEleName, StreamMode
// create OLE storages on a stream ( see ctor of SotStorage )
// Such a storage will be created on a UCBStorageStream; it will write into the stream
// if it is opened in direct mode or when it is committed. In this case the stream will be
- // modified and then it MUST be treated as commited.
+ // modified and then it MUST be treated as committed.
if ( !pElement->m_xStream.Is() )
{
BaseStorageStream* pStr = OpenStream( rEleName, nMode, bDirect );