summaryrefslogtreecommitdiff
path: root/cpp/src/IceGrid/DescriptorParser.cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2008-03-18 01:37:51 -0800
committerMatthew Newhook <matthew@zeroc.com>2008-03-18 01:37:51 -0800
commitaa0fcb15afd952144967d873bfc7b86d93973192 (patch)
treee657bb26128e8b1ba27353504bdbe7d2b4e3da98 /cpp/src/IceGrid/DescriptorParser.cpp
parentGot rid of redundant #ifdef. (Bug 2429.) (diff)
downloadice-aa0fcb15afd952144967d873bfc7b86d93973192.tar.bz2
ice-aa0fcb15afd952144967d873bfc7b86d93973192.tar.xz
ice-aa0fcb15afd952144967d873bfc7b86d93973192.zip
http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=2719
Squashed commit of the following: commit 5ff1fac3e73ef4fb3ac96a692812a849ff585ebc Author: Matthew Newhook <matthew@zeroc.com> Date: Tue Mar 18 01:27:20 2008 -0800 Fixed the various && || warnings from gcc.
Diffstat (limited to 'cpp/src/IceGrid/DescriptorParser.cpp')
-rw-r--r--cpp/src/IceGrid/DescriptorParser.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/IceGrid/DescriptorParser.cpp b/cpp/src/IceGrid/DescriptorParser.cpp
index 96b6f923ffd..e13e145d801 100644
--- a/cpp/src/IceGrid/DescriptorParser.cpp
+++ b/cpp/src/IceGrid/DescriptorParser.cpp
@@ -220,7 +220,7 @@ DescriptorHandler::startElement(const string& name, const IceXML::Attributes& at
}
else if(name == "server")
{
- if(!_currentNode.get() && !_currentTemplate.get() || _currentServer.get())
+ if((!_currentNode.get() && !_currentTemplate.get()) || _currentServer.get())
{
error("the <server> element can only be a child of a <node> or <server-template> element");
}
@@ -236,7 +236,7 @@ DescriptorHandler::startElement(const string& name, const IceXML::Attributes& at
}
else if(name == "icebox")
{
- if(!_currentNode.get() && !_currentTemplate.get() || _currentServer.get())
+ if((!_currentNode.get() && !_currentTemplate.get()) || _currentServer.get())
{
error("the <icebox> element can only be a child of a <node> or <server-template> element");
}
@@ -268,7 +268,7 @@ DescriptorHandler::startElement(const string& name, const IceXML::Attributes& at
}
else if(name == "service")
{
- if(!_currentServer.get() && !_currentTemplate.get() || _currentService.get())
+ if((!_currentServer.get() && !_currentTemplate.get()) || _currentService.get())
{
error("the <service> element can only be a child of an <icebox> or <service-template> element");
}
@@ -414,7 +414,7 @@ DescriptorHandler::startElement(const string& name, const IceXML::Attributes& at
else if(name == "distrib")
{
if(!_currentApplication.get() ||
- (_currentNode.get() || _currentTemplate.get()) && !_currentServer.get() ||
+ ((_currentNode.get() || _currentTemplate.get()) && !_currentServer.get()) ||
_currentServer.get() != _currentCommunicator)
{
error("the <distrib> element can only be a child of an <application>, <server> or <icebox> element");