summaryrefslogtreecommitdiff
path: root/xmlhelp
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2008-11-12 13:19:46 +0000
committerRüdiger Timm <rt@openoffice.org>2008-11-12 13:19:46 +0000
commit0746817c7bb5687dd6513ba31637df9cdff832d0 (patch)
tree1c255c6dae500eb6f5ed0e5f942b9fdeaf68f76c /xmlhelp
parent1dd6316419dee58f52472892860048641e808f9b (diff)
CWS-TOOLING: integrate CWS cli004
2008-11-06 12:34:38 +0100 christianlins r263378 : Add fix for issue #i95920#. 2008-11-04 17:10:30 +0100 christianlins r263331 : Add patch from issue #95662#. 2008-11-03 14:22:24 +0100 christianlins r263283 : Apply patch from issue #95798#.
Diffstat (limited to 'xmlhelp')
-rw-r--r--xmlhelp/source/cxxhelp/provider/bufferedinputstream.cxx2
-rw-r--r--xmlhelp/source/cxxhelp/provider/databases.cxx4
-rw-r--r--xmlhelp/source/cxxhelp/provider/urlparameter.cxx2
3 files changed, 4 insertions, 4 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/bufferedinputstream.cxx b/xmlhelp/source/cxxhelp/provider/bufferedinputstream.cxx
index cd6b07e5d640..b507c6965115 100644
--- a/xmlhelp/source/cxxhelp/provider/bufferedinputstream.cxx
+++ b/xmlhelp/source/cxxhelp/provider/bufferedinputstream.cxx
@@ -60,7 +60,7 @@ Reference<XInputStream> chelp::turnToSeekable(const Reference<XInputStream>& xIn
BufferedInputStream::BufferedInputStream(const Reference<XInputStream>& xInputStream)
: m_nBufferLocation(0),
m_nBufferSize(0),
- m_pBuffer(new sal_Int8[0])
+ m_pBuffer(new sal_Int8[1]) // Initialize with one to avoid gcc compiler warnings
{
try
{
diff --git a/xmlhelp/source/cxxhelp/provider/databases.cxx b/xmlhelp/source/cxxhelp/provider/databases.cxx
index 0f849b2d5786..ed0cf3e73649 100644
--- a/xmlhelp/source/cxxhelp/provider/databases.cxx
+++ b/xmlhelp/source/cxxhelp/provider/databases.cxx
@@ -1205,7 +1205,7 @@ void Databases::cascadingStylesheet( const rtl::OUString& Language,
if( error )
{
m_nCustomCSSDocLength = 0;
- m_pCustomCSSDoc = new char[ 0 ];
+ m_pCustomCSSDoc = new char[ 1 ]; // Initialize with 1 to avoid gcc compiler warning
}
}
@@ -1275,7 +1275,7 @@ void Databases::setActiveText( const rtl::OUString& Module,
else
{
*byteCount = 0;
- *buffer = new char[0];
+ *buffer = new char[1]; // Initialize with 1 to avoid compiler warnings
if( !bFoundAsEmpty )
m_aEmptyActiveTextSet.insert( id );
}
diff --git a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx
index 7dc6b5253b88..76a7d1902891 100644
--- a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx
+++ b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx
@@ -881,7 +881,7 @@ InputStreamTransformer::InputStreamTransformer( URLParameter* urlParam,
bool isRoot )
: len( 0 ),
pos( 0 ),
- buffer( new char[0] )
+ buffer( new char[1] ) // Initializing with one element to avoid gcc compiler warning
{
if( isRoot )
{