diff options
author | Marc Laukien <marc@zeroc.com> | 2002-06-23 21:17:04 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2002-06-23 21:17:04 +0000 |
commit | 59788b8663f1f05a95b7afbbc6d2846dae11c96a (patch) | |
tree | c3ed292df270f11157decb83827d9af4144db52d /cpp/demo/Ice/nested | |
parent | file run.py was initially added on branch location. (diff) | |
download | ice-59788b8663f1f05a95b7afbbc6d2846dae11c96a.tar.bz2 ice-59788b8663f1f05a95b7afbbc6d2846dae11c96a.tar.xz ice-59788b8663f1f05a95b7afbbc6d2846dae11c96a.zip |
removed spaces after keywords
Diffstat (limited to 'cpp/demo/Ice/nested')
-rw-r--r-- | cpp/demo/Ice/nested/Client.cpp | 8 | ||||
-rw-r--r-- | cpp/demo/Ice/nested/NestedI.cpp | 2 | ||||
-rw-r--r-- | cpp/demo/Ice/nested/NestedI.h | 56 |
3 files changed, 33 insertions, 33 deletions
diff --git a/cpp/demo/Ice/nested/Client.cpp b/cpp/demo/Ice/nested/Client.cpp index 67be9e8c482..94cfb330077 100644 --- a/cpp/demo/Ice/nested/Client.cpp +++ b/cpp/demo/Ice/nested/Client.cpp @@ -34,7 +34,7 @@ NestedClient::run(int argc, char* argv[]) PropertiesPtr properties = communicator()->getProperties(); const char* refProperty = "Nested.NestedServer"; std::string ref = properties->getProperty(refProperty); - if (ref.empty()) + if(ref.empty()) { cerr << appName() << ": property `" << refProperty << "' not set" << endl; return EXIT_FAILURE; @@ -42,7 +42,7 @@ NestedClient::run(int argc, char* argv[]) ObjectPrx base = communicator()->stringToProxy(ref); NestedPrx nested = NestedPrx::checkedCast(base); - if (!nested) + if(!nested) { cerr << appName() << ": invalid object reference" << endl; return EXIT_FAILURE; @@ -67,7 +67,7 @@ NestedClient::run(int argc, char* argv[]) cout << "enter nesting level or 'x' for exit: "; cin >> s; int level = atoi(s.c_str()); - if (level > 0) + if(level > 0) { nested->nested(level, self); } @@ -77,7 +77,7 @@ NestedClient::run(int argc, char* argv[]) cerr << ex << endl; } } - while (cin.good() && s != "x"); + while(cin.good() && s != "x"); return EXIT_SUCCESS; } diff --git a/cpp/demo/Ice/nested/NestedI.cpp b/cpp/demo/Ice/nested/NestedI.cpp index f5c91651f59..de18f33f744 100644 --- a/cpp/demo/Ice/nested/NestedI.cpp +++ b/cpp/demo/Ice/nested/NestedI.cpp @@ -23,7 +23,7 @@ void NestedI::nested(Int level, const NestedPrx& proxy, const Ice::Current& current) { cout << level << endl; - if (--level > 0) + if(--level > 0) { proxy->nested(level, _self, current.context); } diff --git a/cpp/demo/Ice/nested/NestedI.h b/cpp/demo/Ice/nested/NestedI.h index 8b5293c53c3..27960cbe2b8 100644 --- a/cpp/demo/Ice/nested/NestedI.h +++ b/cpp/demo/Ice/nested/NestedI.h @@ -1,28 +1,28 @@ -// ********************************************************************** -// -// Copyright (c) 2001 -// MutableRealms, Inc. -// Huntsville, AL, USA -// -// All Rights Reserved -// -// ********************************************************************** - -#ifndef NESTED_I_H -#define NESTED_I_H - -#include <Nested.h> - -class NestedI : public Nested -{ -public: - - NestedI(const NestedPrx&); - virtual void nested(Ice::Int, const NestedPrx&, const Ice::Current&); - -private: - - NestedPrx _self; -}; - -#endif +// **********************************************************************
+//
+// Copyright (c) 2001
+// MutableRealms, Inc.
+// Huntsville, AL, USA
+//
+// All Rights Reserved
+//
+// **********************************************************************
+
+#ifndef NESTED_I_H
+#define NESTED_I_H
+
+#include <Nested.h>
+
+class NestedI : public Nested
+{
+public:
+
+ NestedI(const NestedPrx&);
+ virtual void nested(Ice::Int, const NestedPrx&, const Ice::Current&);
+
+private:
+
+ NestedPrx _self;
+};
+
+#endif
|