diff options
author | Benoit Foucher <benoit@zeroc.com> | 2013-06-27 11:12:58 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2013-06-27 11:12:58 +0200 |
commit | e40c00eaabd62e0650bc75a7cb72b4424d0e280b (patch) | |
tree | 016cf0d5a6ce62a373139afa3dca609b733cf9ac /cpp/test/Ice/plugin/Plugin.cpp | |
parent | Removed PropertiesAdmin.h from repository, it's now generated (diff) | |
download | ice-e40c00eaabd62e0650bc75a7cb72b4424d0e280b.tar.bz2 ice-e40c00eaabd62e0650bc75a7cb72b4424d0e280b.tar.xz ice-e40c00eaabd62e0650bc75a7cb72b4424d0e280b.zip |
Fixed ICE-5363: unexpected string::substr exception thrown
Diffstat (limited to 'cpp/test/Ice/plugin/Plugin.cpp')
-rw-r--r-- | cpp/test/Ice/plugin/Plugin.cpp | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/cpp/test/Ice/plugin/Plugin.cpp b/cpp/test/Ice/plugin/Plugin.cpp index 6ea8d89303b..f52baee03ba 100644 --- a/cpp/test/Ice/plugin/Plugin.cpp +++ b/cpp/test/Ice/plugin/Plugin.cpp @@ -20,9 +20,8 @@ class Plugin : public Ice::Plugin public: - Plugin(const Ice::CommunicatorPtr& communicator, const Ice::StringSeq& args) : + Plugin(const Ice::CommunicatorPtr& communicator) : _communicator(communicator), - _args(args), _initialized(false), _destroyed(false) { @@ -32,10 +31,6 @@ public: initialize() { _initialized = true; - test(_args.size() == 3); - test(_args[0] == "C:\\Program Files\\"); - test(_args[1] == "--DatabasePath"); - test(_args[2] == "C:\\Program Files\\Application\\db"); } void @@ -363,7 +358,17 @@ extern "C" ICE_DECLSPEC_EXPORT ::Ice::Plugin* createPlugin(const Ice::CommunicatorPtr& communicator, const string&, const Ice::StringSeq& args) { - return new Plugin(communicator, args); + return new Plugin(communicator); +} + +ICE_DECLSPEC_EXPORT ::Ice::Plugin* +createPluginWithArgs(const Ice::CommunicatorPtr& communicator, const string&, const Ice::StringSeq& args) +{ + test(args.size() == 3); + test(args[0] == "C:\\Program Files\\"); + test(args[1] == "--DatabasePath"); + test(args[2] == "C:\\Program Files\\Application\\db"); + return new Plugin(communicator); } ICE_DECLSPEC_EXPORT ::Ice::Plugin* |