summaryrefslogtreecommitdiff
path: root/xmlhelp
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2009-01-29 10:02:54 +0000
committerKurt Zenker <kz@openoffice.org>2009-01-29 10:02:54 +0000
commit25dad84813feb405e709c31b180361dc1b7cfaaa (patch)
tree764c39b2ec2f74b33e8f50129525f5c24b9f67c0 /xmlhelp
parent7deeb2a401b108ac176c4670b6674bfabfcef63c (diff)
CWS-TOOLING: integrate CWS cmcfixes52
2009-01-05 10:49:04 +0100 cmc r265860 : #i97763# remove low-hanging warnings
Diffstat (limited to 'xmlhelp')
-rw-r--r--xmlhelp/source/cxxhelp/inc/db/Block.hxx8
-rw-r--r--xmlhelp/source/cxxhelp/inc/qe/ConceptData.hxx6
-rw-r--r--xmlhelp/source/cxxhelp/inc/qe/DocGenerator.hxx4
-rw-r--r--xmlhelp/source/cxxhelp/inc/util/IndexAccessor.hxx2
-rw-r--r--xmlhelp/source/cxxhelp/qe/DocGenerator.cxx2
-rw-r--r--xmlhelp/source/cxxhelp/qe/Search.cxx2
6 files changed, 15 insertions, 9 deletions
diff --git a/xmlhelp/source/cxxhelp/inc/db/Block.hxx b/xmlhelp/source/cxxhelp/inc/db/Block.hxx
index 7b3446d4b515..ee57708bf2fe 100644
--- a/xmlhelp/source/cxxhelp/inc/db/Block.hxx
+++ b/xmlhelp/source/cxxhelp/inc/db/Block.hxx
@@ -99,10 +99,10 @@ namespace xmlsearch {
inline sal_Int32 getInteger_( const sal_Int8* v )
{
- return (((((( v[0]&0xFF ) << 8 )
- | v[1]&0xFF ) << 8 )
- | v[2]&0xFF ) << 8 )
- | v[3]&0xFF;
+ return (((((( (v[0]&0xFF) ) << 8 )
+ | (v[1]&0xFF) ) << 8 )
+ | (v[2]&0xFF) ) << 8 )
+ | (v[3]&0xFF);
}
diff --git a/xmlhelp/source/cxxhelp/inc/qe/ConceptData.hxx b/xmlhelp/source/cxxhelp/inc/qe/ConceptData.hxx
index 2c0a25892f61..52e8e1560102 100644
--- a/xmlhelp/source/cxxhelp/inc/qe/ConceptData.hxx
+++ b/xmlhelp/source/cxxhelp/inc/qe/ConceptData.hxx
@@ -67,9 +67,9 @@ namespace xmlsearch {
bool crEquals( ConceptData* r ) { return cEquals( r ) && role_ == r->role_; }
bool crqEquals( ConceptData* r ) { return crEquals( r ) && queryNo_ == r->queryNo_; }
bool compareWith( ConceptData* r ) { return
- concept_ < r->concept_ ||
- cEquals( r ) && role_ < r->role_ ||
- crEquals( r ) && penalty_ < r->penalty_; }
+ (concept_ < r->concept_) ||
+ (cEquals( r ) && role_ < r->role_) ||
+ (crEquals( r ) && penalty_ < r->penalty_); }
void addLast( ConceptData* r );
diff --git a/xmlhelp/source/cxxhelp/inc/qe/DocGenerator.hxx b/xmlhelp/source/cxxhelp/inc/qe/DocGenerator.hxx
index 99bc46584e52..27e545af06cf 100644
--- a/xmlhelp/source/cxxhelp/inc/qe/DocGenerator.hxx
+++ b/xmlhelp/source/cxxhelp/inc/qe/DocGenerator.hxx
@@ -93,9 +93,9 @@ namespace xmlsearch {
bool smallerThan( NextDocGenerator* other )
{
return
- document_ < other->document_
+ (document_ < other->document_)
||
- document_ == other->document_ && concept_ < other->concept_;
+ (document_ == other->document_ && concept_ < other->concept_);
}
diff --git a/xmlhelp/source/cxxhelp/inc/util/IndexAccessor.hxx b/xmlhelp/source/cxxhelp/inc/util/IndexAccessor.hxx
index 0ebb01e16f8f..edae2cb85724 100644
--- a/xmlhelp/source/cxxhelp/inc/util/IndexAccessor.hxx
+++ b/xmlhelp/source/cxxhelp/inc/util/IndexAccessor.hxx
@@ -52,10 +52,12 @@ namespace xmlsearch {
IndexAccessor( const rtl::OUString& dirName )
{
if( dirName.getLength() )
+ {
if( dirName.getStr()[dirName.getLength()-1] != sal_Unicode( '/' ) )
dirName_ = ( dirName + rtl::OUString::createFromAscii( "/" ) ) ;
else
dirName_ = dirName;
+ }
}
diff --git a/xmlhelp/source/cxxhelp/qe/DocGenerator.cxx b/xmlhelp/source/cxxhelp/qe/DocGenerator.cxx
index cc44fc1edd9d..b3aea87db3d2 100644
--- a/xmlhelp/source/cxxhelp/qe/DocGenerator.cxx
+++ b/xmlhelp/source/cxxhelp/qe/DocGenerator.cxx
@@ -473,6 +473,7 @@ bool GeneratorHeap::next( std::vector< RoleFiller* >& array ) throw( xmlsearch::
if( heapSize_ > 0 )
{
if( ! heap_[0]->next() ) // no more
+ {
if( heapSize_ > 1)
{
delete heap_[0];
@@ -484,6 +485,7 @@ bool GeneratorHeap::next( std::vector< RoleFiller* >& array ) throw( xmlsearch::
heapSize_ = 0;
return false;
}
+ }
heapify(0);
heap_[0]->generateFillers( array );
return true;
diff --git a/xmlhelp/source/cxxhelp/qe/Search.cxx b/xmlhelp/source/cxxhelp/qe/Search.cxx
index b53746bf1916..493205661d64 100644
--- a/xmlhelp/source/cxxhelp/qe/Search.cxx
+++ b/xmlhelp/source/cxxhelp/qe/Search.cxx
@@ -347,6 +347,7 @@ void Search::startSearch()
for (j = i + 1; j < free2_; j++ )
{
if( conceptData_[j].is() )
+ {
if( conceptData_[i]->cEquals( conceptData_[j].get() ) )
{
conceptData_[i]->addLast( conceptData_[j].get() );
@@ -354,6 +355,7 @@ void Search::startSearch()
}
else
i = j;
+ }
}
}