summaryrefslogtreecommitdiff
path: root/cpp/src/IcePatch2/Client.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2004-12-03 19:46:51 +0000
committerMarc Laukien <marc@zeroc.com>2004-12-03 19:46:51 +0000
commit895c126dadd9e1c0e8641269d16d4b8d3dd70c13 (patch)
tree3e3003d57dc23a99bb1829bf9a525aec85517412 /cpp/src/IcePatch2/Client.cpp
parentfix for proxy marshaling bug (diff)
downloadice-895c126dadd9e1c0e8641269d16d4b8d3dd70c13.tar.bz2
ice-895c126dadd9e1c0e8641269d16d4b8d3dd70c13.tar.xz
ice-895c126dadd9e1c0e8641269d16d4b8d3dd70c13.zip
fixes
Diffstat (limited to 'cpp/src/IcePatch2/Client.cpp')
-rw-r--r--cpp/src/IcePatch2/Client.cpp42
1 files changed, 15 insertions, 27 deletions
diff --git a/cpp/src/IcePatch2/Client.cpp b/cpp/src/IcePatch2/Client.cpp
index b355c9e81eb..d3c8d4a8156 100644
--- a/cpp/src/IcePatch2/Client.cpp
+++ b/cpp/src/IcePatch2/Client.cpp
@@ -22,23 +22,6 @@ using namespace std;
using namespace Ice;
using namespace IcePatch2;
-namespace IcePatch2
-{
-
-class Client : public Application
-{
-public:
-
- void usage();
- virtual int run(int, char*[]);
-
-private:
-
- void usage(const std::string&);
-};
-
-};
-
class TextPatcherFeedback : public PatcherFeedback
{
public:
@@ -183,8 +166,19 @@ private:
#endif
};
+class Client : public Application
+{
+public:
+
+ virtual int run(int, char*[]);
+
+private:
+
+ void usage(const std::string&);
+};
+
int
-IcePatch2::Client::run(int argc, char* argv[])
+Client::run(int argc, char* argv[])
{
PropertiesPtr properties = communicator()->getProperties();
@@ -237,20 +231,14 @@ IcePatch2::Client::run(int argc, char* argv[])
PatcherFeedbackPtr feedback = new TextPatcherFeedback;
PatcherPtr patcher = new Patcher(communicator(), feedback);
- if(!aborted)
- {
- aborted = !patcher->prepare();
- }
+ aborted = !patcher->prepare();
if(!aborted)
{
aborted = !patcher->patch("");
}
- if(!aborted)
- {
- patcher->finish();
- }
+ patcher->finish();
}
catch(const string& ex)
{
@@ -270,7 +258,7 @@ IcePatch2::Client::run(int argc, char* argv[])
}
void
-IcePatch2::Client::usage(const string& appName)
+Client::usage(const string& appName)
{
string options =
"Options:\n"