summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2003-06-05 06:26:55 +0000
committerMichi Henning <michi@zeroc.com>2003-06-05 06:26:55 +0000
commitff4e027b3efd11ec50b8bd70a5d230abaa8d9b97 (patch)
treec51cadc4bf84f670742925f2807eee393882ae6c /cpp/src
parentDocumented Ice.Config and Ice.Nohup properties. (diff)
downloadice-ff4e027b3efd11ec50b8bd70a5d230abaa8d9b97.tar.bz2
ice-ff4e027b3efd11ec50b8bd70a5d230abaa8d9b97.tar.xz
ice-ff4e027b3efd11ec50b8bd70a5d230abaa8d9b97.zip
Bloody VC7 and aggregate initialization :-(
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/Ice/PropertiesI.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/cpp/src/Ice/PropertiesI.cpp b/cpp/src/Ice/PropertiesI.cpp
index ccfa9df26ee..3467f46c33d 100644
--- a/cpp/src/Ice/PropertiesI.cpp
+++ b/cpp/src/Ice/PropertiesI.cpp
@@ -261,20 +261,21 @@ struct PropertyValues {
string prefix;
const string* props;
size_t propsSize;
+ PropertyValues(string pf, const string* p, size_t s) : prefix(pf), props(p), propsSize(s) {}
};
//
// Array of valid properties for each application.
//
static const PropertyValues validProps[] = {
- { "Freeze", freezeProps, sizeof(freezeProps) / sizeof(freezeProps[0]) },
- { "Glacier", glacierProps, sizeof(glacierProps) / sizeof(glacierProps[0]) },
- { "IceBox", iceBoxProps, sizeof(iceBoxProps) / sizeof(iceBoxProps[0]) },
- { "Ice", iceProps, sizeof(iceProps) / sizeof(iceProps[0]) },
- { "IcePack", icePackProps, sizeof(icePackProps) / sizeof(icePackProps[0]) },
- { "IcePatch", icePatchProps, sizeof(icePatchProps) / sizeof(icePatchProps[0]) },
- { "IceSSL", iceSSLProps, sizeof(iceSSLProps) / sizeof(iceSSLProps[0]) },
- { "IceStorm", iceStormProps, sizeof(iceStormProps) / sizeof(iceStormProps[0]) }
+ PropertyValues("Freeze", freezeProps, sizeof(freezeProps) / sizeof(freezeProps[0])),
+ PropertyValues("Glacier", glacierProps, sizeof(glacierProps) / sizeof(glacierProps[0])),
+ PropertyValues("IceBox", iceBoxProps, sizeof(iceBoxProps) / sizeof(iceBoxProps[0])),
+ PropertyValues("Ice", iceProps, sizeof(iceProps) / sizeof(iceProps[0])),
+ PropertyValues("IcePack", icePackProps, sizeof(icePackProps) / sizeof(icePackProps[0])),
+ PropertyValues("IcePatch", icePatchProps, sizeof(icePatchProps) / sizeof(icePatchProps[0])),
+ PropertyValues("IceSSL", iceSSLProps, sizeof(iceSSLProps) / sizeof(iceSSLProps[0])),
+ PropertyValues("IceStorm", iceStormProps, sizeof(iceStormProps) / sizeof(iceStormProps[0]))
};
static const size_t validPropsSize = sizeof(validProps) / sizeof(validProps[0]);