summaryrefslogtreecommitdiff
path: root/cosv
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 13:31:06 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 13:31:06 +0000
commitb4cc9add3a92742696f1dda5e87e473157177e09 (patch)
tree32c693ae72ab1fda54a41e824fccad48949578f8 /cosv
parenta87ac7d09aeb2ffaa9c4f3a2a04ccecacad58318 (diff)
INTEGRATION: CWS warnings01 (1.10.8); FILE MERGED
2005/11/07 12:09:07 sb 1.10.8.3: #i53898# Made code warning-free (additional -W switches for GCC). 2005/09/22 22:17:48 sb 1.10.8.2: RESYNC: (1.10-1.11); FILE MERGED 2005/09/05 08:13:45 sb 1.10.8.1: #i53898# Made code warning-free.
Diffstat (limited to 'cosv')
-rw-r--r--cosv/source/strings/streamstr.cxx14
1 files changed, 9 insertions, 5 deletions
diff --git a/cosv/source/strings/streamstr.cxx b/cosv/source/strings/streamstr.cxx
index 11f541ead1a8..f964e7a3befc 100644
--- a/cosv/source/strings/streamstr.cxx
+++ b/cosv/source/strings/streamstr.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: streamstr.cxx,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: rt $ $Date: 2005-09-08 08:08:53 $
+ * last change: $Author: hr $ $Date: 2006-06-19 14:31:06 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -119,7 +119,8 @@ StreamStr::StreamStr( size_type i_nGuessedCapacity,
}
StreamStr::StreamStr( const self & i_rOther )
- : nCapacity1( i_rOther.nCapacity1 ),
+ : bostream(),
+ nCapacity1( i_rOther.nCapacity1 ),
dpData( new char [i_rOther.nCapacity1] ),
pEnd( dpData + strlen(i_rOther.dpData) ),
pCur( dpData + i_rOther.tellp() ),
@@ -661,7 +662,7 @@ StreamStr::to_lower( position_type i_nStart,
pChange != pStop;
++pChange )
{
- *pChange = (*pChange & char(0x80)) == '\0'
+ *pChange = (static_cast< unsigned char >(*pChange) & 0x80) == 0
? cLower[ UINT8(*pChange) ]
: *pChange;
}
@@ -692,7 +693,7 @@ StreamStr::to_upper( position_type i_nStart,
pChange != pStop;
++pChange )
{
- *pChange = (*pChange & char(0x80)) == '\0'
+ *pChange = (static_cast< unsigned char >(*pChange) & 0x80) == 0
? cUpper[ UINT8(*pChange) ]
: *pChange;
}
@@ -737,6 +738,9 @@ class StreamStrPool
StreamStrPool();
~StreamStrPool();
private:
+ StreamStrPool(StreamStrPool &); // not defined
+ void operator =(StreamStrPool &); // not defined
+
// Interface to:
friend class StreamStrLock;
static StreamStr & AcquireFromPool_(