summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/Parser.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2001-12-13 04:51:25 +0000
committerMarc Laukien <marc@zeroc.com>2001-12-13 04:51:25 +0000
commitbf1cda1fc7977c7c2c8545a2fd4f1e5c928c1ddf (patch)
tree013dbe6fdccbd8657523e4f44b02537879ce7361 /cpp/src/Slice/Parser.cpp
parentcomparison operators; started with Connection (diff)
downloadice-bf1cda1fc7977c7c2c8545a2fd4f1e5c928c1ddf.tar.bz2
ice-bf1cda1fc7977c7c2c8545a2fd4f1e5c928c1ddf.tar.xz
ice-bf1cda1fc7977c7c2c8545a2fd4f1e5c928c1ddf.zip
Fixes
Diffstat (limited to 'cpp/src/Slice/Parser.cpp')
-rw-r--r--cpp/src/Slice/Parser.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/cpp/src/Slice/Parser.cpp b/cpp/src/Slice/Parser.cpp
index ef93d6d5f2b..6eb7e5a16f3 100644
--- a/cpp/src/Slice/Parser.cpp
+++ b/cpp/src/Slice/Parser.cpp
@@ -115,6 +115,18 @@ Slice::Contained::file()
return _file;
}
+bool
+Slice::Contained::operator<(const Contained& rhs) const
+{
+ return _scoped < rhs._scoped;
+}
+
+bool
+Slice::Contained::operator==(const Contained& rhs) const
+{
+ return _scoped == rhs._scoped;
+}
+
Slice::Contained::Contained(const ContainerPtr& container, const string& name) :
SyntaxTreeBase(container->unit()),
_container(container),
@@ -132,18 +144,6 @@ Slice::Contained::Contained(const ContainerPtr& container, const string& name) :
_file = _unit->currentFile();
}
-bool
-Slice::operator<(Contained& l, Contained& r)
-{
- return l.scoped() < r.scoped();
-}
-
-bool
-Slice::operator==(Contained& l, Contained& r)
-{
- return l.scoped() == r.scoped();
-}
-
// ----------------------------------------------------------------------
// Container
// ----------------------------------------------------------------------