diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2007-02-12 14:54:45 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2007-02-12 14:54:45 +0000 |
commit | 6888e262f377011620d49d224bc73b5237a45980 (patch) | |
tree | 3ee0778e551638f6d06ec385e99f4ec036af69ca /cpp/src/IceGrid/IceGridNode.cpp | |
parent | Fixed bug 1790 (diff) | |
download | ice-6888e262f377011620d49d224bc73b5237a45980.tar.bz2 ice-6888e262f377011620d49d224bc73b5237a45980.tar.xz ice-6888e262f377011620d49d224bc73b5237a45980.zip |
Use propertyToProxy in a couple more places
Diffstat (limited to 'cpp/src/IceGrid/IceGridNode.cpp')
-rw-r--r-- | cpp/src/IceGrid/IceGridNode.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cpp/src/IceGrid/IceGridNode.cpp b/cpp/src/IceGrid/IceGridNode.cpp index 3536d91e85c..31acc4d7fbb 100644 --- a/cpp/src/IceGrid/IceGridNode.cpp +++ b/cpp/src/IceGrid/IceGridNode.cpp @@ -412,13 +412,14 @@ NodeService::start(int argc, char* argv[]) // // Setup the user account mapper if configured. // - string mapperProperty = properties->getProperty("IceGrid.Node.UserAccountMapper"); + string mapperProperty = "IceGrid.Node.UserAccountMapper"; + string mapperPropertyValue = properties->getProperty(mapperProperty); UserAccountMapperPrx mapper; - if(!mapperProperty.empty()) + if(!mapperPropertyValue.empty()) { try { - mapper = UserAccountMapperPrx::uncheckedCast(communicator()->stringToProxy(mapperProperty)); + mapper = UserAccountMapperPrx::uncheckedCast(communicator()->propertyToProxy(mapperProperty)); } catch(const Ice::LocalException& ex) { @@ -788,9 +789,9 @@ NodeService::usage(const string& appName) "\n" "\n" "--daemon Run as a daemon.\n" - "--pidfile FILE Write process ID into FILE." "--noclose Do not close open file descriptors.\n" "--nochdir Do not change the current working directory.\n" + "--pidfile <file> Write process ID to <file>." ); #endif print("Usage: " + appName + " [options]\n" + options); |