summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/Freeze/BackgroundSaveEvictorI.cpp24
-rw-r--r--[-rwxr-xr-x]cpp/src/Freeze/EvictorI.h0
-rw-r--r--cpp/src/Freeze/MapI.cpp12
-rw-r--r--cpp/src/Freeze/MapI.h2
-rw-r--r--cpp/src/Freeze/ObjectStore.cpp30
-rw-r--r--cpp/src/Freeze/TransactionalEvictorContext.cpp10
-rw-r--r--cpp/src/Freeze/TransactionalEvictorI.cpp8
-rw-r--r--[-rwxr-xr-x]cpp/src/FreezeScript/DumpDB.cpp36
-rw-r--r--[-rwxr-xr-x]cpp/src/FreezeScript/TransformVisitor.cpp2
-rw-r--r--[-rwxr-xr-x]cpp/src/FreezeScript/Transformer.cpp2
-rw-r--r--[-rwxr-xr-x]cpp/src/FreezeScript/transformdb.cpp136
-rw-r--r--[-rwxr-xr-x]cpp/src/Glacier2/Blobject.cpp0
-rw-r--r--[-rwxr-xr-x]cpp/src/Glacier2/ProxyVerifier.cpp0
-rw-r--r--[-rwxr-xr-x]cpp/src/Glacier2/RequestQueue.cpp0
-rw-r--r--cpp/src/Ice/Application.cpp2
-rw-r--r--[-rwxr-xr-x]cpp/src/Ice/Base64.cpp0
-rw-r--r--[-rwxr-xr-x]cpp/src/Ice/BasicStream.cpp0
-rw-r--r--[-rwxr-xr-x]cpp/src/Ice/ConnectionFactory.cpp0
-rw-r--r--[-rwxr-xr-x]cpp/src/Ice/EventLoggerMsg.h0
-rw-r--r--cpp/src/Ice/PropertyNames.h6
-rw-r--r--cpp/src/Ice/Proxy.cpp2
-rw-r--r--cpp/src/Ice/Service.cpp20
-rw-r--r--cpp/src/Ice/winrt/StreamEndpointI.cpp2
-rw-r--r--cpp/src/Ice/winrt/StreamEndpointI.h2
-rw-r--r--cpp/src/IceGrid/Activator.cpp10
-rw-r--r--cpp/src/IceGrid/Client.cpp2
-rw-r--r--cpp/src/IceGrid/NodeCache.cpp26
-rw-r--r--cpp/src/IceGrid/PlatformInfo.cpp50
-rw-r--r--cpp/src/IceGrid/RegistryI.cpp10
-rw-r--r--[-rwxr-xr-x]cpp/src/IceGrid/ServerI.cpp12
-rw-r--r--[-rwxr-xr-x]cpp/src/IceGrid/SessionServantManager.cpp2
-rw-r--r--cpp/src/IceGrid/Util.cpp104
-rw-r--r--[-rwxr-xr-x]cpp/src/IceGrid/Util.h0
-rw-r--r--[-rwxr-xr-x]cpp/src/IcePatch2/Calc.cpp0
-rw-r--r--[-rwxr-xr-x]cpp/src/IcePatch2/FileServerI.cpp0
-rw-r--r--[-rwxr-xr-x]cpp/src/IcePatch2Lib/ClientUtil.cpp0
-rw-r--r--[-rwxr-xr-x]cpp/src/IcePatch2Lib/Util.cpp0
-rw-r--r--cpp/src/IceStorm/NodeI.cpp20
-rw-r--r--cpp/src/IceStorm/NodeI.h2
-rw-r--r--cpp/src/IceStorm/Replica.h2
-rw-r--r--[-rwxr-xr-x]cpp/src/IceStorm/Subscriber.cpp0
-rw-r--r--cpp/src/IceStorm/TopicI.cpp20
-rw-r--r--cpp/src/IceStorm/TopicManagerI.cpp10
-rw-r--r--cpp/src/IceStorm/TransientTopicI.cpp2
-rw-r--r--cpp/src/IceUtil/Shared.cpp20
-rw-r--r--cpp/src/IceUtil/StringUtil.cpp12
-rw-r--r--cpp/src/IceUtil/UUID.cpp4
-rw-r--r--cpp/src/Slice/CPlusPlusUtil.cpp8
-rw-r--r--cpp/src/Slice/CsUtil.cpp4
-rw-r--r--[-rwxr-xr-x]cpp/src/Slice/Parser.cpp8
-rw-r--r--[-rwxr-xr-x]cpp/src/Slice/PythonUtil.cpp0
-rw-r--r--[-rwxr-xr-x]cpp/src/Slice/RubyUtil.cpp0
-rw-r--r--cpp/src/iceserviceinstall/ServiceInstaller.cpp2
-rw-r--r--[-rwxr-xr-x]cpp/src/slice2confluence/Gen.cpp0
-rw-r--r--[-rwxr-xr-x]cpp/src/slice2confluence/Main.cpp0
-rw-r--r--cpp/src/slice2cpp/Gen.cpp88
-rw-r--r--cpp/src/slice2cs/Gen.h2
-rw-r--r--[-rwxr-xr-x]cpp/src/slice2freezej/Main.cpp0
-rw-r--r--[-rwxr-xr-x]cpp/src/slice2html/Gen.cpp4
-rw-r--r--[-rwxr-xr-x]cpp/src/slice2html/Main.cpp0
60 files changed, 360 insertions, 360 deletions
diff --git a/cpp/src/Freeze/BackgroundSaveEvictorI.cpp b/cpp/src/Freeze/BackgroundSaveEvictorI.cpp
index c06b6a660fa..9b889541f3d 100644
--- a/cpp/src/Freeze/BackgroundSaveEvictorI.cpp
+++ b/cpp/src/Freeze/BackgroundSaveEvictorI.cpp
@@ -301,12 +301,12 @@ Freeze::BackgroundSaveEvictorI::addFacet(const ObjectPtr& servant, const Identit
ObjectRecord& rec = element->rec;
rec.servant = servant;
- if(store->keepStats())
- {
- rec.stats.creationTime = IceUtil::Time::now(IceUtil::Time::Monotonic).toMilliSeconds();
- rec.stats.lastSaveTime = 0;
- rec.stats.avgSaveTime = 0;
- }
+ if(store->keepStats())
+ {
+ rec.stats.creationTime = IceUtil::Time::now(IceUtil::Time::Monotonic).toMilliSeconds();
+ rec.stats.lastSaveTime = 0;
+ rec.stats.avgSaveTime = 0;
+ }
addToModifiedQueue(element);
break;
}
@@ -1117,7 +1117,7 @@ Freeze::BackgroundSaveEvictorI::run()
}
Long saveStart = IceUtil::Time::now(IceUtil::Time::Monotonic).toMilliSeconds();
-
+
try
{
DbTxn* tx = 0;
@@ -1402,11 +1402,11 @@ Freeze::BackgroundSaveEvictorI::stream(const BackgroundSaveEvictorElementPtr& el
if(element->status != destroyed)
{
- bool keepStats = obj.store->keepStats();
- if(keepStats)
- {
- EvictorIBase::updateStats(element->rec.stats, streamStart);
- }
+ bool keepStats = obj.store->keepStats();
+ if(keepStats)
+ {
+ EvictorIBase::updateStats(element->rec.stats, streamStart);
+ }
ObjectStoreBase::marshal(element->rec, obj.value, _communicator, _encoding, keepStats);
}
}
diff --git a/cpp/src/Freeze/EvictorI.h b/cpp/src/Freeze/EvictorI.h
index c2d5d93aa31..c2d5d93aa31 100755..100644
--- a/cpp/src/Freeze/EvictorI.h
+++ b/cpp/src/Freeze/EvictorI.h
diff --git a/cpp/src/Freeze/MapI.cpp b/cpp/src/Freeze/MapI.cpp
index f59cc04e465..603d9ab35c6 100644
--- a/cpp/src/Freeze/MapI.cpp
+++ b/cpp/src/Freeze/MapI.cpp
@@ -376,7 +376,7 @@ Freeze::IteratorHelperI::IteratorHelperI(const MapHelperI& m, bool readOnly,
#ifdef ICE_CPP11
_tx.reset(new Tx(_map));
#else
- _tx = new Tx(_map);
+ _tx = new Tx(_map);
#endif
txn = _tx->getTxn();
}
@@ -1045,12 +1045,12 @@ Freeze::MapHelperI::~MapHelperI()
{
try
{
- close();
+ close();
}
catch(const DatabaseException& ex)
{
- Ice::Error error(_connection->getCommunicator()->getLogger());
- error << "Freeze: closing map " << _dbName << " raised: " << ex;
+ Ice::Error error(_connection->getCommunicator()->getLogger());
+ error << "Freeze: closing map " << _dbName << " raised: " << ex;
}
}
@@ -1716,11 +1716,11 @@ Freeze::MapIndexI::~MapIndexI()
{
try
{
- _db->close(0);
+ _db->close(0);
}
catch(const DbException&)
{
- // Ignored
+ // Ignored
}
}
diff --git a/cpp/src/Freeze/MapI.h b/cpp/src/Freeze/MapI.h
index f6d3e7ded81..e414d77fc95 100644
--- a/cpp/src/Freeze/MapI.h
+++ b/cpp/src/Freeze/MapI.h
@@ -67,7 +67,7 @@ public:
class Tx
#ifndef ICE_CPP11
- : public IceUtil::SimpleShared
+ : public IceUtil::SimpleShared
#endif
{
public:
diff --git a/cpp/src/Freeze/ObjectStore.cpp b/cpp/src/Freeze/ObjectStore.cpp
index e8801a1b3c7..44a9fb2b02f 100644
--- a/cpp/src/Freeze/ObjectStore.cpp
+++ b/cpp/src/Freeze/ObjectStore.cpp
@@ -62,13 +62,13 @@ Freeze::ObjectStoreBase::ObjectStoreBase(const string& facet, const string& face
if(p != catalog.end())
{
if(p->second.evictor)
- {
- //
- // empty means the value is ::Freeze::ObjectRecord
- //
- _keepStats = p->second.value.empty();
- }
- else
+ {
+ //
+ // empty means the value is ::Freeze::ObjectRecord
+ //
+ _keepStats = p->second.value.empty();
+ }
+ else
{
DatabaseException ex(__FILE__, __LINE__);
ex.message = evictor->filename() + " is not an evictor database";
@@ -149,8 +149,8 @@ Freeze::ObjectStoreBase::ObjectStoreBase(const string& facet, const string& face
{
CatalogData catalogData;
catalogData.evictor = true;
- catalogData.key = "Ice::Identity";
- catalogData.value = "Object";
+ catalogData.key = "Ice::Identity";
+ catalogData.value = "Object";
catalog.put(Catalog::value_type(evictor->filename(), catalogData));
}
@@ -214,8 +214,8 @@ Freeze::ObjectStoreBase::~ObjectStoreBase()
}
catch(const DbException& dx)
{
- Ice::Error error(_communicator->getLogger());
- error << "Freeze: closing ObjectStore " << _dbName << " raised DbException: " << dx.what();
+ Ice::Error error(_communicator->getLogger());
+ error << "Freeze: closing ObjectStore " << _dbName << " raised DbException: " << dx.what();
}
}
@@ -358,7 +358,7 @@ Freeze::ObjectStoreBase::marshal(const ObjectRecord& v,
Value& bytes,
const CommunicatorPtr& communicator,
const EncodingVersion& encoding,
- bool keepStats)
+ bool keepStats)
{
IceInternal::InstancePtr instance = IceInternal::getInstance(communicator);
IceInternal::BasicStream stream(instance.get(), encoding, true);
@@ -369,7 +369,7 @@ Freeze::ObjectStoreBase::marshal(const ObjectRecord& v,
}
else
{
- stream.write(v.servant);
+ stream.write(v.servant);
}
stream.writePendingObjects();
@@ -382,7 +382,7 @@ Freeze::ObjectStoreBase::unmarshal(ObjectRecord& v,
const Value& bytes,
const CommunicatorPtr& communicator,
const EncodingVersion& encoding,
- bool keepStats)
+ bool keepStats)
{
IceInternal::InstancePtr instance = IceInternal::getInstance(communicator);
IceInternal::BasicStream stream(instance.get(), encoding, true);
@@ -398,7 +398,7 @@ Freeze::ObjectStoreBase::unmarshal(ObjectRecord& v,
}
else
{
- stream.read(v.servant);
+ stream.read(v.servant);
}
stream.readPendingObjects();
diff --git a/cpp/src/Freeze/TransactionalEvictorContext.cpp b/cpp/src/Freeze/TransactionalEvictorContext.cpp
index b2cbf130b80..4ff75ddd128 100644
--- a/cpp/src/Freeze/TransactionalEvictorContext.cpp
+++ b/cpp/src/Freeze/TransactionalEvictorContext.cpp
@@ -275,11 +275,11 @@ Freeze::TransactionalEvictorContext::ServantHolder::~ServantHolder() ICE_NOEXCEP
{
if(!_body.readOnly && !_body.removed)
{
- if(_body.store->keepStats())
- {
- EvictorIBase::updateStats(_body.rec.stats,
- IceUtil::Time::now(IceUtil::Time::Monotonic).toMilliSeconds());
- }
+ if(_body.store->keepStats())
+ {
+ EvictorIBase::updateStats(_body.rec.stats,
+ IceUtil::Time::now(IceUtil::Time::Monotonic).toMilliSeconds());
+ }
_body.store->update(_body.current->id, _body.rec, ctx->_tx);
}
diff --git a/cpp/src/Freeze/TransactionalEvictorI.cpp b/cpp/src/Freeze/TransactionalEvictorI.cpp
index e24c5006111..c3d641cf00b 100644
--- a/cpp/src/Freeze/TransactionalEvictorI.cpp
+++ b/cpp/src/Freeze/TransactionalEvictorI.cpp
@@ -150,7 +150,7 @@ Freeze::TransactionalEvictorI::addFacet(const ObjectPtr& servant, const Identity
if(store->keepStats())
{
- currentTime = IceUtil::Time::now(IceUtil::Time::Monotonic).toMilliSeconds();
+ currentTime = IceUtil::Time::now(IceUtil::Time::Monotonic).toMilliSeconds();
}
Statistics stats = { currentTime };
@@ -160,7 +160,7 @@ Freeze::TransactionalEvictorI::addFacet(const ObjectPtr& servant, const Identity
if(store->keepStats())
{
- updateStats(rec.stats, currentTime);
+ updateStats(rec.stats, currentTime);
}
if(!store->insert(ident, rec, tx))
@@ -430,7 +430,7 @@ Freeze::TransactionalEvictorI::dispatch(Request& request)
if(operationAttributes < 0)
{
- throw OperationNotExistException(__FILE__, __LINE__);
+ throw OperationNotExistException(__FILE__, __LINE__);
}
bool readOnly = (operationAttributes & 0x1) == 0;
@@ -477,7 +477,7 @@ Freeze::TransactionalEvictorI::dispatch(Request& request)
default:
{
assert(0);
- throw OperationNotExistException(__FILE__, __LINE__);
+ throw OperationNotExistException(__FILE__, __LINE__);
}
}
diff --git a/cpp/src/FreezeScript/DumpDB.cpp b/cpp/src/FreezeScript/DumpDB.cpp
index b2da041ec3d..27aef7b463d 100755..100644
--- a/cpp/src/FreezeScript/DumpDB.cpp
+++ b/cpp/src/FreezeScript/DumpDB.cpp
@@ -357,8 +357,8 @@ run(const Ice::StringSeq& originalArgs, const Ice::CommunicatorPtr& communicator
if(inputFile.empty())
{
const string evictorKeyTypeName = "::Ice::Identity";
- const string oldEvictorValueTypeName = "::Freeze::ObjectRecord";
- const string newEvictorValueTypeName = "Object";
+ const string oldEvictorValueTypeName = "::Freeze::ObjectRecord";
+ const string newEvictorValueTypeName = "Object";
if((!keyTypeName.empty() && valueTypeName.empty()) || (keyTypeName.empty() && !valueTypeName.empty() && !evictor))
{
@@ -388,32 +388,32 @@ run(const Ice::StringSeq& originalArgs, const Ice::CommunicatorPtr& communicator
{
evictor = true;
}
- keyTypeName = p->second.key;
- valueTypeName = p->second.value;
+ keyTypeName = p->second.key;
+ valueTypeName = p->second.value;
- if(evictor && valueTypeName.empty())
- {
- valueTypeName = oldEvictorValueTypeName;
- }
+ if(evictor && valueTypeName.empty())
+ {
+ valueTypeName = oldEvictorValueTypeName;
+ }
}
}
catch(const FreezeScript::FailureException& ex)
{
- cerr << appName << ": " << ex.reason() << endl;
- return EXIT_FAILURE;
+ cerr << appName << ": " << ex.reason() << endl;
+ return EXIT_FAILURE;
}
}
if(evictor)
{
- if(keyTypeName.empty())
- {
- keyTypeName = evictorKeyTypeName;
- }
- if(valueTypeName.empty())
- {
- valueTypeName = newEvictorValueTypeName;
- }
+ if(keyTypeName.empty())
+ {
+ keyTypeName = evictorKeyTypeName;
+ }
+ if(valueTypeName.empty())
+ {
+ valueTypeName = newEvictorValueTypeName;
+ }
}
Slice::TypePtr keyType, valueType;
diff --git a/cpp/src/FreezeScript/TransformVisitor.cpp b/cpp/src/FreezeScript/TransformVisitor.cpp
index 86dd1a72bd4..4a5d4c6ff98 100755..100644
--- a/cpp/src/FreezeScript/TransformVisitor.cpp
+++ b/cpp/src/FreezeScript/TransformVisitor.cpp
@@ -529,7 +529,7 @@ FreezeScript::TransformVisitor::transformObject(const ObjectDataPtr& dest, const
objectDataMap.erase(p);
#if (defined(_MSC_VER) && (_MSC_VER >= 1600))
- objectDataMap.insert(ObjectDataMap::value_type(src.get(), nullptr));
+ objectDataMap.insert(ObjectDataMap::value_type(src.get(), nullptr));
#else
objectDataMap.insert(ObjectDataMap::value_type(src.get(), 0));
#endif
diff --git a/cpp/src/FreezeScript/Transformer.cpp b/cpp/src/FreezeScript/Transformer.cpp
index 3d699d65491..3fda2cf467e 100755..100644
--- a/cpp/src/FreezeScript/Transformer.cpp
+++ b/cpp/src/FreezeScript/Transformer.cpp
@@ -2652,7 +2652,7 @@ FreezeScript::ObjectVisitor::visitObject(const ObjectRefPtr& data)
#if (defined(_MSC_VER) && (_MSC_VER >= 1600))
_map.insert(ObjectDataMap::value_type(value.get(), nullptr));
#else
- _map.insert(ObjectDataMap::value_type(value.get(), 0));
+ _map.insert(ObjectDataMap::value_type(value.get(), 0));
#endif
DataMemberMap& members = value->getMembers();
for(DataMemberMap::iterator q = members.begin(); q != members.end(); ++q)
diff --git a/cpp/src/FreezeScript/transformdb.cpp b/cpp/src/FreezeScript/transformdb.cpp
index f4583394b5c..8de1709ae4a 100755..100644
--- a/cpp/src/FreezeScript/transformdb.cpp
+++ b/cpp/src/FreezeScript/transformdb.cpp
@@ -490,8 +490,8 @@ run(const Ice::StringSeq& originalArgs, const Ice::CommunicatorPtr& communicator
FreezeScript::TransformAnalyzer analyzer(oldUnit, newUnit, ignoreTypeChanges, out, missingTypes, analyzeErrors);
const string evictorKeyName = "::Ice::Identity";
- const string oldEvictorValueName = "::Freeze::ObjectRecord";
- const string newEvictorValueName = "Object";
+ const string oldEvictorValueName = "::Freeze::ObjectRecord";
+ const string newEvictorValueName = "Object";
if(allDb)
{
@@ -507,14 +507,14 @@ run(const Ice::StringSeq& originalArgs, const Ice::CommunicatorPtr& communicator
keyName = p->second.key;
valueName = p->second.value;
- if(keyName.empty())
- {
- keyName = evictorKeyName;
- }
- if(valueName.empty())
- {
- valueName = oldEvictorValueName;
- }
+ if(keyName.empty())
+ {
+ keyName = evictorKeyName;
+ }
+ if(valueName.empty())
+ {
+ valueName = oldEvictorValueName;
+ }
}
else
{
@@ -544,18 +544,18 @@ run(const Ice::StringSeq& originalArgs, const Ice::CommunicatorPtr& communicator
<< "' not found in old Slice definitions" << endl;
}
- Slice::TypePtr newValueType;
- if(p->second.evictor)
- {
- //
- // The new evictor does not keep stats
- //
- newValueType = findType(newUnit, newEvictorValueName);
- }
- else
- {
- newValueType = findType(newUnit, valueName);
- }
+ Slice::TypePtr newValueType;
+ if(p->second.evictor)
+ {
+ //
+ // The new evictor does not keep stats
+ //
+ newValueType = findType(newUnit, newEvictorValueName);
+ }
+ else
+ {
+ newValueType = findType(newUnit, valueName);
+ }
if(!newValueType)
{
@@ -576,44 +576,44 @@ run(const Ice::StringSeq& originalArgs, const Ice::CommunicatorPtr& communicator
{
return EXIT_FAILURE;
}
-
+
analyzer.addDatabase(p->first, oldKeyType, newKeyType, oldValueType, newValueType);
}
}
else
{
string oldKeyName, newKeyName, oldValueName, newValueName;
-
- string::size_type pos;
-
- if(!evictor && (keyTypeNames.empty() || valueTypeNames.empty()))
- {
- usage(appName);
- return EXIT_FAILURE;
- }
-
- if(!keyTypeNames.empty())
- {
- pos = keyTypeNames.find(',');
- if(pos == 0 || pos == keyTypeNames.size())
- {
- usage(appName);
- return EXIT_FAILURE;
- }
- if(pos == string::npos)
- {
- oldKeyName = keyTypeNames;
- newKeyName = keyTypeNames;
- }
+
+ string::size_type pos;
+
+ if(!evictor && (keyTypeNames.empty() || valueTypeNames.empty()))
+ {
+ usage(appName);
+ return EXIT_FAILURE;
+ }
+
+ if(!keyTypeNames.empty())
+ {
+ pos = keyTypeNames.find(',');
+ if(pos == 0 || pos == keyTypeNames.size())
+ {
+ usage(appName);
+ return EXIT_FAILURE;
+ }
+ if(pos == string::npos)
+ {
+ oldKeyName = keyTypeNames;
+ newKeyName = keyTypeNames;
+ }
else
{
oldKeyName = keyTypeNames.substr(0, pos);
newKeyName = keyTypeNames.substr(pos + 1);
}
- }
+ }
- if(!valueTypeNames.empty())
- {
+ if(!valueTypeNames.empty())
+ {
pos = valueTypeNames.find(',');
if(pos == 0 || pos == valueTypeNames.size())
{
@@ -631,26 +631,26 @@ run(const Ice::StringSeq& originalArgs, const Ice::CommunicatorPtr& communicator
newValueName = valueTypeNames.substr(pos + 1);
}
}
-
- if(evictor)
- {
- if(oldKeyName.empty())
- {
- oldKeyName = evictorKeyName;
- }
- if(newKeyName.empty())
- {
- newKeyName = evictorKeyName;
- }
- if(oldValueName.empty())
- {
- oldValueName = newEvictorValueName;
- }
- if(newValueName.empty())
- {
- newValueName = newEvictorValueName;
- }
- }
+
+ if(evictor)
+ {
+ if(oldKeyName.empty())
+ {
+ oldKeyName = evictorKeyName;
+ }
+ if(newKeyName.empty())
+ {
+ newKeyName = evictorKeyName;
+ }
+ if(oldValueName.empty())
+ {
+ oldValueName = newEvictorValueName;
+ }
+ if(newValueName.empty())
+ {
+ newValueName = newEvictorValueName;
+ }
+ }
//
// Look up the key and value types in the old and new Slice definitions.
diff --git a/cpp/src/Glacier2/Blobject.cpp b/cpp/src/Glacier2/Blobject.cpp
index 3c7098e3968..3c7098e3968 100755..100644
--- a/cpp/src/Glacier2/Blobject.cpp
+++ b/cpp/src/Glacier2/Blobject.cpp
diff --git a/cpp/src/Glacier2/ProxyVerifier.cpp b/cpp/src/Glacier2/ProxyVerifier.cpp
index a1c3943b31f..a1c3943b31f 100755..100644
--- a/cpp/src/Glacier2/ProxyVerifier.cpp
+++ b/cpp/src/Glacier2/ProxyVerifier.cpp
diff --git a/cpp/src/Glacier2/RequestQueue.cpp b/cpp/src/Glacier2/RequestQueue.cpp
index 23ab5baaed2..23ab5baaed2 100755..100644
--- a/cpp/src/Glacier2/RequestQueue.cpp
+++ b/cpp/src/Glacier2/RequestQueue.cpp
diff --git a/cpp/src/Ice/Application.cpp b/cpp/src/Ice/Application.cpp
index 027d42b39c8..65fa68986d5 100644
--- a/cpp/src/Ice/Application.cpp
+++ b/cpp/src/Ice/Application.cpp
@@ -330,7 +330,7 @@ Ice::Application::main(int argc, char* argv[], const char* configFile)
catch(const std::exception& ex)
{
Error out(getProcessLogger());
- out << ex;
+ out << ex;
return EXIT_FAILURE;
}
catch(...)
diff --git a/cpp/src/Ice/Base64.cpp b/cpp/src/Ice/Base64.cpp
index 187ea5b13dd..187ea5b13dd 100755..100644
--- a/cpp/src/Ice/Base64.cpp
+++ b/cpp/src/Ice/Base64.cpp
diff --git a/cpp/src/Ice/BasicStream.cpp b/cpp/src/Ice/BasicStream.cpp
index cd32101f980..cd32101f980 100755..100644
--- a/cpp/src/Ice/BasicStream.cpp
+++ b/cpp/src/Ice/BasicStream.cpp
diff --git a/cpp/src/Ice/ConnectionFactory.cpp b/cpp/src/Ice/ConnectionFactory.cpp
index 78963794398..78963794398 100755..100644
--- a/cpp/src/Ice/ConnectionFactory.cpp
+++ b/cpp/src/Ice/ConnectionFactory.cpp
diff --git a/cpp/src/Ice/EventLoggerMsg.h b/cpp/src/Ice/EventLoggerMsg.h
index 5934c1f104f..5934c1f104f 100755..100644
--- a/cpp/src/Ice/EventLoggerMsg.h
+++ b/cpp/src/Ice/EventLoggerMsg.h
diff --git a/cpp/src/Ice/PropertyNames.h b/cpp/src/Ice/PropertyNames.h
index 9a58ee47ab7..f8f09b5a81c 100644
--- a/cpp/src/Ice/PropertyNames.h
+++ b/cpp/src/Ice/PropertyNames.h
@@ -27,9 +27,9 @@ struct Property
const char* deprecatedBy;
Property(const char* n, bool d, const char* b) :
- pattern(n),
- deprecated(d),
- deprecatedBy(b)
+ pattern(n),
+ deprecated(d),
+ deprecatedBy(b)
{
}
diff --git a/cpp/src/Ice/Proxy.cpp b/cpp/src/Ice/Proxy.cpp
index e2196926685..8f519f5ca55 100644
--- a/cpp/src/Ice/Proxy.cpp
+++ b/cpp/src/Ice/Proxy.cpp
@@ -161,7 +161,7 @@ Ice::AsyncResultPtr
IceProxy::Ice::Object::begin_ice_isA(const string& typeId,
const Context* ctx,
const ::IceInternal::CallbackBasePtr& del,
- const ::Ice::LocalObjectPtr& cookie)
+ const ::Ice::LocalObjectPtr& cookie)
{
OutgoingAsyncPtr __result = new OutgoingAsync(this, ice_isA_name, del, cookie);
__checkAsyncTwowayOnly(ice_isA_name);
diff --git a/cpp/src/Ice/Service.cpp b/cpp/src/Ice/Service.cpp
index 232a155602e..140eb8759f4 100644
--- a/cpp/src/Ice/Service.cpp
+++ b/cpp/src/Ice/Service.cpp
@@ -632,10 +632,10 @@ Ice::Service::main(int& argc, char* argv[], const InitializationData& initializa
}
else
{
- if(argv[0])
- {
- cerr << argv[0] << ": ";
- }
+ if(argv[0])
+ {
+ cerr << argv[0] << ": ";
+ }
cerr << "--pidfile must be followed by an argument" << endl;
return EXIT_FAILURE;
}
@@ -654,20 +654,20 @@ Ice::Service::main(int& argc, char* argv[], const InitializationData& initializa
if(!closeFiles && !daemonize)
{
- if(argv[0])
+ if(argv[0])
{
- cerr << argv[0] << ": ";
- }
+ cerr << argv[0] << ": ";
+ }
cerr << "--noclose must be used with --daemon" << endl;
return EXIT_FAILURE;
}
if(pidFile.size() > 0 && !daemonize)
{
- if(argv[0])
+ if(argv[0])
{
- cerr << argv[0] << ": ";
- }
+ cerr << argv[0] << ": ";
+ }
cerr << "--pidfile <file> must be used with --daemon" << endl;
return EXIT_FAILURE;
}
diff --git a/cpp/src/Ice/winrt/StreamEndpointI.cpp b/cpp/src/Ice/winrt/StreamEndpointI.cpp
index d8279281e15..0b37f5d4fbf 100644
--- a/cpp/src/Ice/winrt/StreamEndpointI.cpp
+++ b/cpp/src/Ice/winrt/StreamEndpointI.cpp
@@ -65,7 +65,7 @@ private:
IceInternal::StreamEndpointI::StreamEndpointI(const InstancePtr& instance, Ice::Short type, const string& ho, Int po,
Int ti, const Ice::ProtocolVersion& protocol,
- const Ice::EncodingVersion& encoding, const string& conId, bool co) :
+ const Ice::EncodingVersion& encoding, const string& conId, bool co) :
EndpointI(protocol, encoding, conId),
_instance(instance),
_type(type),
diff --git a/cpp/src/Ice/winrt/StreamEndpointI.h b/cpp/src/Ice/winrt/StreamEndpointI.h
index 91ad87a81a5..8ebc7e3e5e1 100644
--- a/cpp/src/Ice/winrt/StreamEndpointI.h
+++ b/cpp/src/Ice/winrt/StreamEndpointI.h
@@ -23,7 +23,7 @@ class StreamEndpointI : public EndpointI
public:
StreamEndpointI(const InstancePtr&, Ice::Short, const std::string&, Ice::Int, Ice::Int,
- const Ice::ProtocolVersion&, const Ice::EncodingVersion&, const std::string&, bool);
+ const Ice::ProtocolVersion&, const Ice::EncodingVersion&, const std::string&, bool);
StreamEndpointI(const InstancePtr&, Ice::Short, const std::string&, bool);
StreamEndpointI(BasicStream*, Ice::Short);
diff --git a/cpp/src/IceGrid/Activator.cpp b/cpp/src/IceGrid/Activator.cpp
index bcc8ee77576..ea4e7e3e502 100644
--- a/cpp/src/IceGrid/Activator.cpp
+++ b/cpp/src/IceGrid/Activator.cpp
@@ -231,7 +231,7 @@ stringToSignal(const string& str)
}
else
#endif
- if(str == ICE_STRING(SIGKILL))
+ if(str == ICE_STRING(SIGKILL))
{
return SIGKILL;
}
@@ -248,10 +248,10 @@ stringToSignal(const string& str)
if(*end == '\0' && signal > 0 && signal < 64)
{
#ifdef _WIN32
- if(signal == SIGKILL || signal == SIGTERM)
- {
- return static_cast<int>(signal);
- }
+ if(signal == SIGKILL || signal == SIGTERM)
+ {
+ return static_cast<int>(signal);
+ }
#else
return static_cast<int>(signal);
#endif
diff --git a/cpp/src/IceGrid/Client.cpp b/cpp/src/IceGrid/Client.cpp
index 052957900ac..a234e57ea83 100644
--- a/cpp/src/IceGrid/Client.cpp
+++ b/cpp/src/IceGrid/Client.cpp
@@ -787,7 +787,7 @@ Client::getPassword(const string& prompt)
char c;
while((c = _getch()) != '\r')
{
- password += c;
+ password += c;
}
#endif
cout << endl;
diff --git a/cpp/src/IceGrid/NodeCache.cpp b/cpp/src/IceGrid/NodeCache.cpp
index c2d69d64e05..d2313b1ca39 100644
--- a/cpp/src/IceGrid/NodeCache.cpp
+++ b/cpp/src/IceGrid/NodeCache.cpp
@@ -971,22 +971,22 @@ NodeEntry::getInternalServerDescriptor(const ServerInfo& info) const
ServiceDescriptorPtr s = p->descriptor;
const string path = _session->getInfo()->dataDir + "/servers/" + server->id + "/config/config_" + s->name;
- //
- // We escape the path here because the command-line option --Ice.Config=xxx will be parsed an encoded
+ //
+ // We escape the path here because the command-line option --Ice.Config=xxx will be parsed an encoded
// (escaped) property
- // For example, \\server\dir\file.cfg needs to become \\\server\dir\file.cfg or \\\\server\\dir\\file.cfg.
- //
+ // For example, \\server\dir\file.cfg needs to become \\\server\dir\file.cfg or \\\\server\\dir\\file.cfg.
+ //
props.push_back(createProperty("IceBox.Service." + s->name, s->entry + " --Ice.Config='"
- + escapeProperty(path) + "'"));
+ + escapeProperty(path) + "'"));
- if(servicesStr.empty())
- {
- servicesStr = s->name;
- }
- else
- {
- servicesStr += " " + s->name;
- }
+ if(servicesStr.empty())
+ {
+ servicesStr = s->name;
+ }
+ else
+ {
+ servicesStr += " " + s->name;
+ }
}
if(!hasProperty(info.descriptor->propertySet.properties, "IceBox.InstanceName"))
{
diff --git a/cpp/src/IceGrid/PlatformInfo.cpp b/cpp/src/IceGrid/PlatformInfo.cpp
index 661de383582..6d219f98b9b 100644
--- a/cpp/src/IceGrid/PlatformInfo.cpp
+++ b/cpp/src/IceGrid/PlatformInfo.cpp
@@ -88,7 +88,7 @@ public:
virtual void
run()
{
- _platform.runUpdateLoadInfo();
+ _platform.runUpdateLoadInfo();
}
private:
@@ -304,7 +304,7 @@ PlatformInfo::PlatformInfo(const string& prefix,
_nProcessorSockets = ids.size();
#else
// Not supported
- _nProcessorSockets = 1;
+ _nProcessorSockets = 1;
#endif
}
@@ -373,9 +373,9 @@ PlatformInfo::stop()
{
#if defined(_WIN32)
{
- IceUtil::Monitor<IceUtil::Mutex>::Lock sync(_utilizationMonitor);
- _terminated = true;
- _utilizationMonitor.notify();
+ IceUtil::Monitor<IceUtil::Mutex>::Lock sync(_utilizationMonitor);
+ _terminated = true;
+ _utilizationMonitor.notify();
}
assert(_updateUtilizationThread);
@@ -543,7 +543,7 @@ PlatformInfo::runUpdateLoadInfo()
}
catch(const Ice::LocalException&)
{
- // No need to print a warning, it's taken care of by getLocalizedPerfName
+ // No need to print a warning, it's taken care of by getLocalizedPerfName
PdhCloseQuery(query);
return;
}
@@ -563,14 +563,14 @@ PlatformInfo::runUpdateLoadInfo()
while(true)
{
- IceUtil::Monitor<IceUtil::Mutex>::Lock sync(_utilizationMonitor);
- _utilizationMonitor.timedWait(IceUtil::Time::seconds(5)); // 5 seconds.
- if(_terminated)
- {
- break;
- }
-
- int usage = 100;
+ IceUtil::Monitor<IceUtil::Mutex>::Lock sync(_utilizationMonitor);
+ _utilizationMonitor.timedWait(IceUtil::Time::seconds(5)); // 5 seconds.
+ if(_terminated)
+ {
+ break;
+ }
+
+ int usage = 100;
PDH_STATUS err = PdhCollectQueryData(query);
if(err == ERROR_SUCCESS)
{
@@ -584,17 +584,17 @@ PlatformInfo::runUpdateLoadInfo()
Ice::Warning out(_traceLevels->logger);
out << "Could not collect performance counter data:\n" << pdhErrorToString(err);
}
-
- _last1Total += usage - _usages1.back();
- _last5Total += usage - _usages5.back();
- _last15Total += usage - _usages15.back();
-
- _usages1.pop_back();
- _usages5.pop_back();
- _usages15.pop_back();
- _usages1.push_front(usage);
- _usages5.push_front(usage);
- _usages15.push_front(usage);
+
+ _last1Total += usage - _usages1.back();
+ _last5Total += usage - _usages5.back();
+ _last15Total += usage - _usages15.back();
+
+ _usages1.pop_back();
+ _usages5.pop_back();
+ _usages15.pop_back();
+ _usages1.push_front(usage);
+ _usages5.push_front(usage);
+ _usages15.push_front(usage);
}
PdhCloseQuery(query);
diff --git a/cpp/src/IceGrid/RegistryI.cpp b/cpp/src/IceGrid/RegistryI.cpp
index 08d844a608f..06330a9cc30 100644
--- a/cpp/src/IceGrid/RegistryI.cpp
+++ b/cpp/src/IceGrid/RegistryI.cpp
@@ -348,11 +348,11 @@ RegistryI::startImpl()
registryTopicManagerId.category = _instanceName;
registryTopicManagerId.name = "RegistryTopicManager";
_iceStorm = IceStormInternal::Service::create(_communicator,
- registryAdapter,
- registryAdapter,
- "IceGrid.Registry",
- registryTopicManagerId,
- "Registry");
+ registryAdapter,
+ registryAdapter,
+ "IceGrid.Registry",
+ registryTopicManagerId,
+ "Registry");
const IceStorm::TopicManagerPrx topicManager = _iceStorm->getTopicManager();
//
diff --git a/cpp/src/IceGrid/ServerI.cpp b/cpp/src/IceGrid/ServerI.cpp
index 852c45c31f1..cc4dcf35145 100755..100644
--- a/cpp/src/IceGrid/ServerI.cpp
+++ b/cpp/src/IceGrid/ServerI.cpp
@@ -1480,7 +1480,7 @@ ServerI::adapterDeactivated(const string& id)
Lock sync(*this);
while(_state == ServerI::Activating)
{
- wait(); // Wait for activate() to set the state to WaitForActivation
+ wait(); // Wait for activate() to set the state to WaitForActivation
}
if((_state == Active || _state == WaitForActivation) &&
@@ -2547,11 +2547,11 @@ ServerI::checkAndUpdateUser(const InternalServerDescriptorPtr& desc, bool update
}
- if(pw->pw_uid == 0 &&
- _node->getCommunicator()->getProperties()->getPropertyAsInt("IceGrid.Node.AllowRunningServersAsRoot") == 0)
- {
- throw "running server as `root' is not allowed";
- }
+ if(pw->pw_uid == 0 &&
+ _node->getCommunicator()->getProperties()->getPropertyAsInt("IceGrid.Node.AllowRunningServersAsRoot") == 0)
+ {
+ throw "running server as `root' is not allowed";
+ }
if(update)
{
diff --git a/cpp/src/IceGrid/SessionServantManager.cpp b/cpp/src/IceGrid/SessionServantManager.cpp
index 6de78e2bab0..0b2d61640d3 100755..100644
--- a/cpp/src/IceGrid/SessionServantManager.cpp
+++ b/cpp/src/IceGrid/SessionServantManager.cpp
@@ -18,7 +18,7 @@ using namespace IceGrid;
SessionServantManager::SessionServantManager(const Ice::ObjectAdapterPtr& adapter,
const string& instanceName,
- bool checkConnection,
+ bool checkConnection,
const string& serverAdminCategory,
const Ice::ObjectPtr& serverAdminRouter,
const AdminCallbackRouterPtr& adminCallbackRouter) :
diff --git a/cpp/src/IceGrid/Util.cpp b/cpp/src/IceGrid/Util.cpp
index cc13cd3804e..2349f0ee503 100644
--- a/cpp/src/IceGrid/Util.cpp
+++ b/cpp/src/IceGrid/Util.cpp
@@ -111,64 +111,64 @@ IceGrid::escapeProperty(const string& s, bool escapeEqual)
switch(c)
{
case ' ':
- {
- //
- // We only escape the space character when it's at the beginning
- // or at the end of the string
- //
- if(i < firstChar || i > lastChar)
- {
- if(previousCharIsEscape)
- {
- result.push_back('\\'); // escape the previous char, by adding another escape.
- }
+ {
+ //
+ // We only escape the space character when it's at the beginning
+ // or at the end of the string
+ //
+ if(i < firstChar || i > lastChar)
+ {
+ if(previousCharIsEscape)
+ {
+ result.push_back('\\'); // escape the previous char, by adding another escape.
+ }
- result.push_back('\\');
- }
- result.push_back(c);
- previousCharIsEscape = false;
- break;
- }
+ result.push_back('\\');
+ }
+ result.push_back(c);
+ previousCharIsEscape = false;
+ break;
+ }
- case '\\':
+ case '\\':
case '#':
case '=':
- {
- if(c == '=' && !escapeEqual)
- {
- previousCharIsEscape = false;
- }
- else
- {
- //
- // We only escape the \ character when it is followed by a
- // character that we escape, e.g. \# is encoded as \\\#, not \#
- // and \\server is encoded as \\\server.
- //
- if(previousCharIsEscape)
- {
- result.push_back('\\'); // escape the previous char, by adding another escape.
- }
- if(c == '\\')
- {
- previousCharIsEscape = true; // deferring the potential escaping to the next loop
- }
- else
- {
- result.push_back('\\');
- previousCharIsEscape = false;
- }
- }
- result.push_back(c);
- break;
- }
+ {
+ if(c == '=' && !escapeEqual)
+ {
+ previousCharIsEscape = false;
+ }
+ else
+ {
+ //
+ // We only escape the \ character when it is followed by a
+ // character that we escape, e.g. \# is encoded as \\\#, not \#
+ // and \\server is encoded as \\\server.
+ //
+ if(previousCharIsEscape)
+ {
+ result.push_back('\\'); // escape the previous char, by adding another escape.
+ }
+ if(c == '\\')
+ {
+ previousCharIsEscape = true; // deferring the potential escaping to the next loop
+ }
+ else
+ {
+ result.push_back('\\');
+ previousCharIsEscape = false;
+ }
+ }
+ result.push_back(c);
+ break;
+ }
default:
- {
- result.push_back(c);
- previousCharIsEscape = false;
- break;
- }
+ {
+ result.push_back(c);
+ previousCharIsEscape = false;
+ break;
+ }
}
}
return result;
diff --git a/cpp/src/IceGrid/Util.h b/cpp/src/IceGrid/Util.h
index 9ba84619693..9ba84619693 100755..100644
--- a/cpp/src/IceGrid/Util.h
+++ b/cpp/src/IceGrid/Util.h
diff --git a/cpp/src/IcePatch2/Calc.cpp b/cpp/src/IcePatch2/Calc.cpp
index f94c00a4197..f94c00a4197 100755..100644
--- a/cpp/src/IcePatch2/Calc.cpp
+++ b/cpp/src/IcePatch2/Calc.cpp
diff --git a/cpp/src/IcePatch2/FileServerI.cpp b/cpp/src/IcePatch2/FileServerI.cpp
index 666b8d121de..666b8d121de 100755..100644
--- a/cpp/src/IcePatch2/FileServerI.cpp
+++ b/cpp/src/IcePatch2/FileServerI.cpp
diff --git a/cpp/src/IcePatch2Lib/ClientUtil.cpp b/cpp/src/IcePatch2Lib/ClientUtil.cpp
index 3e829cc3867..3e829cc3867 100755..100644
--- a/cpp/src/IcePatch2Lib/ClientUtil.cpp
+++ b/cpp/src/IcePatch2Lib/ClientUtil.cpp
diff --git a/cpp/src/IcePatch2Lib/Util.cpp b/cpp/src/IcePatch2Lib/Util.cpp
index 5031718739e..5031718739e 100755..100644
--- a/cpp/src/IcePatch2Lib/Util.cpp
+++ b/cpp/src/IcePatch2Lib/Util.cpp
diff --git a/cpp/src/IceStorm/NodeI.cpp b/cpp/src/IceStorm/NodeI.cpp
index 20da26fdb6b..1693ec694a9 100644
--- a/cpp/src/IceStorm/NodeI.cpp
+++ b/cpp/src/IceStorm/NodeI.cpp
@@ -853,13 +853,13 @@ NodeI::ready(int j, const string& gn, const Ice::ObjectPrx& coordinator, int max
if(!_destroy && _state == NodeStateReorganization && _group == gn)
{
// The coordinator must be j (this was set in the invitation).
- if(_coord != j)
- {
- Ice::Warning warn(_traceLevels->logger);
- warn << _traceLevels->electionCat << ": ignoring ready call from replica node " << j
- << " (real coordinator is " << _coord << ")";
- return;
- }
+ if(_coord != j)
+ {
+ Ice::Warning warn(_traceLevels->logger);
+ warn << _traceLevels->electionCat << ": ignoring ready call from replica node " << j
+ << " (real coordinator is " << _coord << ")";
+ return;
+ }
// Here we've already validated j in the invite call
// (otherwise _group != gn).
@@ -923,8 +923,8 @@ NodeI::accept(int j, const string& gn, const Ice::IntSeq& forwardedInvites, cons
out << *p;
}
out << ") with llu "
- << llu.generation << "/" << llu.iteration << " into group " << gn
- << " group size " << (_up.size() + 1);
+ << llu.generation << "/" << llu.iteration << " into group " << gn
+ << " group size " << (_up.size() + 1);
}
// Add each of the forwarded invites to the list of issued
@@ -946,7 +946,7 @@ NodeI::accept(int j, const string& gn, const Ice::IntSeq& forwardedInvites, cons
// merge continue immediately. Otherwise, we let the existing
// merge() schedule continue.
if((_up.size() == _nodes.size()-1 || _invitesIssued == _invitesAccepted) &&
- _mergeContinueTask && _timer->cancel(_mergeContinueTask))
+ _mergeContinueTask && _timer->cancel(_mergeContinueTask))
{
_timer->schedule(_mergeContinueTask, IceUtil::Time::seconds(0));
}
diff --git a/cpp/src/IceStorm/NodeI.h b/cpp/src/IceStorm/NodeI.h
index f32de3a5d6a..3e6ac1efe64 100644
--- a/cpp/src/IceStorm/NodeI.h
+++ b/cpp/src/IceStorm/NodeI.h
@@ -41,7 +41,7 @@ public:
virtual void invitation(int, const std::string&, const Ice::Current&);
virtual void ready(int, const std::string&, const Ice::ObjectPrx&, int, Ice::Long, const Ice::Current&);
virtual void accept(int, const std::string&, const Ice::IntSeq&, const Ice::ObjectPrx&, const LogUpdate&, int,
- const Ice::Current&);
+ const Ice::Current&);
virtual bool areYouCoordinator(const Ice::Current&) const;
virtual bool areYouThere(const std::string&, int, const Ice::Current&) const;
virtual Ice::ObjectPrx sync(const Ice::Current&) const;
diff --git a/cpp/src/IceStorm/Replica.h b/cpp/src/IceStorm/Replica.h
index be76437a499..3a0ffc93c99 100644
--- a/cpp/src/IceStorm/Replica.h
+++ b/cpp/src/IceStorm/Replica.h
@@ -27,7 +27,7 @@ struct GroupNodeInfo
// COMPILER FIX: Clang using libc++ requires to define operator=
//
#if defined(__clang__) && defined(_LIBCPP_VERSION)
- GroupNodeInfo& operator=(const GroupNodeInfo&);
+ GroupNodeInfo& operator=(const GroupNodeInfo&);
#endif
const int id;
const LogUpdate llu;
diff --git a/cpp/src/IceStorm/Subscriber.cpp b/cpp/src/IceStorm/Subscriber.cpp
index 95ea74c6265..95ea74c6265 100755..100644
--- a/cpp/src/IceStorm/Subscriber.cpp
+++ b/cpp/src/IceStorm/Subscriber.cpp
diff --git a/cpp/src/IceStorm/TopicI.cpp b/cpp/src/IceStorm/TopicI.cpp
index 7f1ea6b67b9..460e291c0ef 100644
--- a/cpp/src/IceStorm/TopicI.cpp
+++ b/cpp/src/IceStorm/TopicI.cpp
@@ -670,7 +670,7 @@ TopicImpl::subscribe(const QoS& origQoS, const Ice::ObjectPrx& obj)
catch(const DatabaseException& ex)
{
halt(_instance->communicator(), ex);
- }
+ }
}
Ice::IdentitySeq ids;
ids.push_back(id);
@@ -708,7 +708,7 @@ TopicImpl::subscribe(const QoS& origQoS, const Ice::ObjectPrx& obj)
catch(const DatabaseException& ex)
{
halt(_instance->communicator(), ex);
- }
+ }
}
_subscribers.push_back(subscriber);
@@ -792,7 +792,7 @@ TopicImpl::subscribeAndGetPublisher(const QoS& qos, const Ice::ObjectPrx& obj)
catch(const DatabaseException& ex)
{
halt(_instance->communicator(), ex);
- }
+ }
}
_subscribers.push_back(subscriber);
@@ -916,7 +916,7 @@ TopicImpl::link(const TopicPrx& topic, Ice::Int cost)
catch(const DatabaseException& ex)
{
halt(_instance->communicator(), ex);
- }
+ }
}
_subscribers.push_back(subscriber);
@@ -995,7 +995,7 @@ TopicImpl::shutdown()
// Shutdown each subscriber. This waits for the event queues to drain.
for(vector<SubscriberPtr>::const_iterator p = _subscribers.begin(); p != _subscribers.end(); ++p)
{
- (*p)->shutdown();
+ (*p)->shutdown();
}
_observer.detach();
@@ -1326,7 +1326,7 @@ TopicImpl::observerAddSubscriber(const LogUpdate& llu, const SubscriberRecord& r
catch(const DatabaseException& ex)
{
halt(_instance->communicator(), ex);
- }
+ }
}
_subscribers.push_back(subscriber);
@@ -1397,7 +1397,7 @@ TopicImpl::observerRemoveSubscriber(const LogUpdate& llu, const Ice::IdentitySeq
catch(const DatabaseException& ex)
{
halt(_instance->communicator(), ex);
- }
+ }
}
}
@@ -1444,7 +1444,7 @@ TopicImpl::updateSubscriberObservers()
IceUtil::Mutex::Lock sync(_subscribersMutex);
for(vector<SubscriberPtr>::const_iterator p = _subscribers.begin(); p != _subscribers.end(); ++p)
{
- (*p)->updateObserver();
+ (*p)->updateObserver();
}
}
@@ -1497,7 +1497,7 @@ TopicImpl::destroyInternal(const LogUpdate& origLLU, bool master)
catch(const DatabaseException& ex)
{
halt(_instance->communicator(), ex);
- }
+ }
}
_instance->topicAdapter()->remove(_id);
@@ -1570,7 +1570,7 @@ TopicImpl::removeSubscribers(const Ice::IdentitySeq& ids)
catch(const DatabaseException& ex)
{
halt(_instance->communicator(), ex);
- }
+ }
}
_instance->observers()->removeSubscriber(llu, _name, ids);
diff --git a/cpp/src/IceStorm/TopicManagerI.cpp b/cpp/src/IceStorm/TopicManagerI.cpp
index 9601d004481..6c13513a608 100644
--- a/cpp/src/IceStorm/TopicManagerI.cpp
+++ b/cpp/src/IceStorm/TopicManagerI.cpp
@@ -413,7 +413,7 @@ TopicManagerImpl::create(const string& name)
catch(const DatabaseException& ex)
{
halt(_instance->communicator(), ex);
- }
+ }
}
_instance->observers()->createTopic(llu, name);
@@ -529,7 +529,7 @@ TopicManagerImpl::observerInit(const LogUpdate& llu, const TopicContentSeq& cont
catch(const DatabaseException& ex)
{
halt(_instance->communicator(), ex);
- }
+ }
}
// We do this with two scans. The first runs through the topics
@@ -628,7 +628,7 @@ TopicManagerImpl::observerCreateTopic(const LogUpdate& llu, const string& name)
catch(const DatabaseException& ex)
{
halt(_instance->communicator(), ex);
- }
+ }
}
installTopic(name, id, true);
}
@@ -716,7 +716,7 @@ TopicManagerImpl::getContent(LogUpdate& llu, TopicContentSeq& content)
catch(const DatabaseException& ex)
{
halt(_instance->communicator(), ex);
- }
+ }
}
}
@@ -803,7 +803,7 @@ TopicManagerImpl::initMaster(const set<GroupNodeInfo>& slaves, const LogUpdate&
catch(const DatabaseException& ex)
{
halt(_instance->communicator(), ex);
- }
+ }
}
// Now initialize the observers.
diff --git a/cpp/src/IceStorm/TransientTopicI.cpp b/cpp/src/IceStorm/TransientTopicI.cpp
index 25ecb67e32c..fb65e2400d7 100644
--- a/cpp/src/IceStorm/TransientTopicI.cpp
+++ b/cpp/src/IceStorm/TransientTopicI.cpp
@@ -580,6 +580,6 @@ TransientTopicImpl::shutdown()
// Shutdown each subscriber. This waits for the event queues to drain.
for(vector<SubscriberPtr>::const_iterator p = _subscribers.begin(); p != _subscribers.end(); ++p)
{
- (*p)->shutdown();
+ (*p)->shutdown();
}
}
diff --git a/cpp/src/IceUtil/Shared.cpp b/cpp/src/IceUtil/Shared.cpp
index 0ce3b28b66c..39805cc746e 100644
--- a/cpp/src/IceUtil/Shared.cpp
+++ b/cpp/src/IceUtil/Shared.cpp
@@ -36,9 +36,9 @@ namespace IceUtilInternal
static inline void atomicInc(volatile int* counter)
{
__asm__ __volatile__(
- "lock ; incl %0"
- :"=m" (*counter)
- :"m" (*counter));
+ "lock ; incl %0"
+ :"=m" (*counter)
+ :"m" (*counter));
}
/**
@@ -55,9 +55,9 @@ static inline int atomicDecAndTest(volatile int* counter)
{
unsigned char c;
__asm__ __volatile__(
- "lock ; decl %0; sete %1"
- :"=m" (*counter), "=qm" (c)
- :"m" (*counter) : "memory");
+ "lock ; decl %0; sete %1"
+ :"=m" (*counter), "=qm" (c)
+ :"m" (*counter) : "memory");
return c != 0;
}
@@ -72,10 +72,10 @@ static inline int atomicExchangeAdd(volatile int* counter, int i)
{
int tmp = i;
__asm__ __volatile__(
- "lock ; xadd %0,(%2)"
- :"+r"(tmp), "=m"(*counter)
- :"r"(counter), "m"(*counter)
- : "memory");
+ "lock ; xadd %0,(%2)"
+ :"+r"(tmp), "=m"(*counter)
+ :"r"(counter), "m"(*counter)
+ : "memory");
return tmp + i;
}
diff --git a/cpp/src/IceUtil/StringUtil.cpp b/cpp/src/IceUtil/StringUtil.cpp
index ec54ef9cf9c..c862e5c236e 100644
--- a/cpp/src/IceUtil/StringUtil.cpp
+++ b/cpp/src/IceUtil/StringUtil.cpp
@@ -570,20 +570,20 @@ IceUtilInternal::errorToString(int error, LPCVOID source)
result = result.substr(0, result.length() - 2);
}
#ifndef ICE_OS_WINRT
- if(msg)
- {
+ if(msg)
+ {
LocalFree(msg);
- }
+ }
#endif
return IceUtil::wstringToString(result);
}
else
{
#ifndef ICE_OS_WINRT
- if(msg)
- {
+ if(msg)
+ {
LocalFree(msg);
- }
+ }
#endif
ostringstream os;
os << "unknown error: " << error;
diff --git a/cpp/src/IceUtil/UUID.cpp b/cpp/src/IceUtil/UUID.cpp
index cb2d77a1992..4bef2ba2116 100644
--- a/cpp/src/IceUtil/UUID.cpp
+++ b/cpp/src/IceUtil/UUID.cpp
@@ -98,7 +98,7 @@ IceUtil::generateUUID()
RPC_STATUS ret = UuidCreate(&uuid);
if(ret != RPC_S_OK && ret != RPC_S_UUID_LOCAL_ONLY && ret != RPC_S_UUID_NO_ADDRESS)
{
- throw new SyscallException(__FILE__, __LINE__, GetLastError());
+ throw new SyscallException(__FILE__, __LINE__, GetLastError());
}
unsigned char* str;
@@ -106,7 +106,7 @@ IceUtil::generateUUID()
ret = UuidToString(&uuid, &str);
if(ret != RPC_S_OK)
{
- throw new SyscallException(__FILE__, __LINE__, GetLastError());
+ throw new SyscallException(__FILE__, __LINE__, GetLastError());
}
string result = reinterpret_cast<char*>(str);
diff --git a/cpp/src/Slice/CPlusPlusUtil.cpp b/cpp/src/Slice/CPlusPlusUtil.cpp
index 086e839b195..403fc9b15b5 100644
--- a/cpp/src/Slice/CPlusPlusUtil.cpp
+++ b/cpp/src/Slice/CPlusPlusUtil.cpp
@@ -1006,12 +1006,12 @@ Slice::findMetaData(const StringList& metaData, int typeCtx)
{
string::size_type pos = str.find(':', prefix.size());
- //
+ //
// If the form is cpp:type:<...> the data after cpp:type:
// is returned.
- // If the form is cpp:range[:<...>], cpp:array or cpp:class,
- // the return value is % followed by the string after cpp:.
- //
+ // If the form is cpp:range[:<...>], cpp:array or cpp:class,
+ // the return value is % followed by the string after cpp:.
+ //
if(pos != string::npos)
{
string ss = str.substr(prefix.size());
diff --git a/cpp/src/Slice/CsUtil.cpp b/cpp/src/Slice/CsUtil.cpp
index cf9597e2e91..699bcb37c0e 100644
--- a/cpp/src/Slice/CsUtil.cpp
+++ b/cpp/src/Slice/CsUtil.cpp
@@ -2117,12 +2117,12 @@ Slice::CsGenerator::MetaDataVisitor::visitUnitStart(const UnitPtr& p)
continue;
}
emitWarning(file, -1, "ignoring invalid global metadata `" + s + "'");
- _history.insert(s);
+ _history.insert(s);
}
else if(s.find(clrPrefix) == 0)
{
emitWarning(file, -1, "ignoring invalid global metadata `" + s + "'");
- _history.insert(s);
+ _history.insert(s);
}
}
}
diff --git a/cpp/src/Slice/Parser.cpp b/cpp/src/Slice/Parser.cpp
index 881353ef07b..1a5b0829618 100755..100644
--- a/cpp/src/Slice/Parser.cpp
+++ b/cpp/src/Slice/Parser.cpp
@@ -2205,10 +2205,10 @@ Slice::Container::checkIdentifier(const string& name) const
static const string suffixBlacklist[] = { "Helper", "Holder", "Prx", "Ptr" };
for(size_t i = 0; i < sizeof(suffixBlacklist) / sizeof(*suffixBlacklist); ++i)
{
- if(name.find(suffixBlacklist[i], name.size() - suffixBlacklist[i].size()) != string::npos)
- {
- _unit->error("illegal identifier `" + name + "': `" + suffixBlacklist[i] + "' suffix is reserved");
- }
+ if(name.find(suffixBlacklist[i], name.size() - suffixBlacklist[i].size()) != string::npos)
+ {
+ _unit->error("illegal identifier `" + name + "': `" + suffixBlacklist[i] + "' suffix is reserved");
+ }
}
//
diff --git a/cpp/src/Slice/PythonUtil.cpp b/cpp/src/Slice/PythonUtil.cpp
index 4fd9a510ee1..4fd9a510ee1 100755..100644
--- a/cpp/src/Slice/PythonUtil.cpp
+++ b/cpp/src/Slice/PythonUtil.cpp
diff --git a/cpp/src/Slice/RubyUtil.cpp b/cpp/src/Slice/RubyUtil.cpp
index 558f4d42623..558f4d42623 100755..100644
--- a/cpp/src/Slice/RubyUtil.cpp
+++ b/cpp/src/Slice/RubyUtil.cpp
diff --git a/cpp/src/iceserviceinstall/ServiceInstaller.cpp b/cpp/src/iceserviceinstall/ServiceInstaller.cpp
index 7fddc88f59c..20178ea72c8 100644
--- a/cpp/src/iceserviceinstall/ServiceInstaller.cpp
+++ b/cpp/src/iceserviceinstall/ServiceInstaller.cpp
@@ -64,7 +64,7 @@ IceServiceInstaller::IceServiceInstaller(int serviceType, const string& configFi
}
else
{
- Ice::LocatorPrx defaultLocator = LocatorPrx::uncheckedCast(
+ Ice::LocatorPrx defaultLocator = LocatorPrx::uncheckedCast(
_communicator->stringToProxy(_serviceProperties->getProperty("Ice.Default.Locator")));
if(defaultLocator != 0)
{
diff --git a/cpp/src/slice2confluence/Gen.cpp b/cpp/src/slice2confluence/Gen.cpp
index 42425db59cd..42425db59cd 100755..100644
--- a/cpp/src/slice2confluence/Gen.cpp
+++ b/cpp/src/slice2confluence/Gen.cpp
diff --git a/cpp/src/slice2confluence/Main.cpp b/cpp/src/slice2confluence/Main.cpp
index 346daddcf8f..346daddcf8f 100755..100644
--- a/cpp/src/slice2confluence/Main.cpp
+++ b/cpp/src/slice2confluence/Main.cpp
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp
index 80f6b7deab1..7a93d08ebb4 100644
--- a/cpp/src/slice2cpp/Gen.cpp
+++ b/cpp/src/slice2cpp/Gen.cpp
@@ -369,7 +369,7 @@ Slice::Gen::generate(const UnitPtr& p)
H << "\n#include <Ice/Proxy.h>";
H << "\n#include <Ice/Object.h>";
H << "\n#include <Ice/Outgoing.h>";
- H << "\n#include <Ice/OutgoingAsync.h>";
+ H << "\n#include <Ice/OutgoingAsync.h>";
H << "\n#include <Ice/Incoming.h>";
if(p->hasContentsWithMetaData("amd"))
{
@@ -1481,14 +1481,14 @@ Slice::Gen::ProxyVisitor::visitClassDefStart(const ClassDefPtr& p)
if(_dllExport != "")
{
- //
- // To export the virtual table
- //
- C << nl << "#ifdef __SUNPRO_CC";
- C << nl << "class "
- << (_dllExport.empty() ? "" : "ICE_DECLSPEC_EXPORT ")
- << "IceProxy" << scoped << ";";
- C << nl << "#endif";
+ //
+ // To export the virtual table
+ //
+ C << nl << "#ifdef __SUNPRO_CC";
+ C << nl << "class "
+ << (_dllExport.empty() ? "" : "ICE_DECLSPEC_EXPORT ")
+ << "IceProxy" << scoped << ";";
+ C << nl << "#endif";
}
C << nl
@@ -2141,7 +2141,7 @@ Slice::Gen::ProxyVisitor::visitOperation(const OperationPtr& p)
string flatName = p->flattenedScope() + name + "_name";
if(p->returnsData())
{
- C << nl << "__checkAsyncTwowayOnly(" << flatName << ");";
+ C << nl << "__checkAsyncTwowayOnly(" << flatName << ");";
}
C << nl << "::IceInternal::OutgoingAsyncPtr __result = new ::IceInternal::OutgoingAsync(this, ";
C << flatName << ", __del, __cookie);";
@@ -3320,7 +3320,7 @@ Slice::Gen::ObjectVisitor::visitClassDefStart(const ClassDefPtr& p)
if(p->name() != "PointerType")
{
- H << nl << "typedef " << p->name() << "Ptr PointerType;";
+ H << nl << "typedef " << p->name() << "Ptr PointerType;";
}
vector<string> params;
@@ -3479,36 +3479,36 @@ Slice::Gen::ObjectVisitor::visitClassDefStart(const ClassDefPtr& p)
if(!p->isLocal())
{
C << sp << nl
- << (_dllExport.empty() ? "" : "ICE_DECLSPEC_EXPORT ")
- << "::Ice::Object* " << scope.substr(2) << "upCast(" << scoped << "* p) { return p; }";
-
- //
- // It would make sense to provide a covariant ice_clone(); unfortunately many compilers
- // (including VS2010) generate bad code for covariant types that use virtual inheritance
- //
-
- if(!p->isInterface())
- {
- H << nl << "virtual ::Ice::ObjectPtr ice_clone() const;";
-
- C << nl << "::Ice::ObjectPtr";
- C << nl << scoped.substr(2) << "::ice_clone() const";
- C << sb;
- if(!p->isAbstract())
- {
- C << nl << "::Ice::Object* __p = new " << name << "(*this);";
- C << nl << "return __p;";
- }
- else
- {
- //
- // We need this ice_clone for abstract classes derived from concrete classes
- //
- C << nl << "throw ::Ice::CloneNotImplementedException(__FILE__, __LINE__);";
- C << nl << "return 0; // to avoid a warning with some compilers";
- }
- C << eb;
- }
+ << (_dllExport.empty() ? "" : "ICE_DECLSPEC_EXPORT ")
+ << "::Ice::Object* " << scope.substr(2) << "upCast(" << scoped << "* p) { return p; }";
+
+ //
+ // It would make sense to provide a covariant ice_clone(); unfortunately many compilers
+ // (including VS2010) generate bad code for covariant types that use virtual inheritance
+ //
+
+ if(!p->isInterface())
+ {
+ H << nl << "virtual ::Ice::ObjectPtr ice_clone() const;";
+
+ C << nl << "::Ice::ObjectPtr";
+ C << nl << scoped.substr(2) << "::ice_clone() const";
+ C << sb;
+ if(!p->isAbstract())
+ {
+ C << nl << "::Ice::Object* __p = new " << name << "(*this);";
+ C << nl << "return __p;";
+ }
+ else
+ {
+ //
+ // We need this ice_clone for abstract classes derived from concrete classes
+ //
+ C << nl << "throw ::Ice::CloneNotImplementedException(__FILE__, __LINE__);";
+ C << nl << "return 0; // to avoid a warning with some compilers";
+ }
+ C << eb;
+ }
ClassList allBases = p->allBases();
StringList ids;
@@ -3597,8 +3597,8 @@ Slice::Gen::ObjectVisitor::visitClassDefStart(const ClassDefPtr& p)
else
{
C << sp << nl
- << (_dllExport.empty() ? "" : "ICE_DECLSPEC_EXPORT ")
- << "::Ice::LocalObject* " << scope.substr(2) << "upCast(" << scoped << "* p) { return p; }";
+ << (_dllExport.empty() ? "" : "ICE_DECLSPEC_EXPORT ")
+ << "::Ice::LocalObject* " << scope.substr(2) << "upCast(" << scoped << "* p) { return p; }";
}
return true;
@@ -4049,7 +4049,7 @@ Slice::Gen::ObjectVisitor::visitClassDefEnd(const ClassDefPtr& p)
else
{
C << sp << nl << "void "
- << (_dllExport.empty() ? "" : "ICE_DECLSPEC_EXPORT ");
+ << (_dllExport.empty() ? "" : "ICE_DECLSPEC_EXPORT ");
C << nl << scope.substr(2) << "__patch(" << p->name() << "Ptr& handle, ::Ice::ObjectPtr& v)";
C << sb;
C << nl << "handle = " << scope << p->name() << "Ptr::dynamicCast(v);";
diff --git a/cpp/src/slice2cs/Gen.h b/cpp/src/slice2cs/Gen.h
index a8ff7998842..9695fa56e98 100644
--- a/cpp/src/slice2cs/Gen.h
+++ b/cpp/src/slice2cs/Gen.h
@@ -150,7 +150,7 @@ private:
virtual void visitModuleEnd(const ModulePtr&);
virtual bool visitClassDefStart(const ClassDefPtr&);
virtual void visitClassDefEnd(const ClassDefPtr&);
- virtual void visitOperation(const OperationPtr&);
+ virtual void visitOperation(const OperationPtr&);
};
class ProxyVisitor : public CsVisitor
diff --git a/cpp/src/slice2freezej/Main.cpp b/cpp/src/slice2freezej/Main.cpp
index bd639993f40..bd639993f40 100755..100644
--- a/cpp/src/slice2freezej/Main.cpp
+++ b/cpp/src/slice2freezej/Main.cpp
diff --git a/cpp/src/slice2html/Gen.cpp b/cpp/src/slice2html/Gen.cpp
index 08eed8b4cf6..295846612c9 100755..100644
--- a/cpp/src/slice2html/Gen.cpp
+++ b/cpp/src/slice2html/Gen.cpp
@@ -1804,7 +1804,7 @@ Slice::StartPageGenerator::printHeaderFooter()
if(!imageDir.empty())
{
- start("td align=\"right\"");
+ start("td align=\"right\"");
start("table");
start("tr");
start("td");
@@ -1821,7 +1821,7 @@ Slice::StartPageGenerator::printHeaderFooter()
end(); // td
end(); // tr
end(); // table
- end(); // td
+ end(); // td
}
end(); // tr
diff --git a/cpp/src/slice2html/Main.cpp b/cpp/src/slice2html/Main.cpp
index 4d4dba8d0e9..4d4dba8d0e9 100755..100644
--- a/cpp/src/slice2html/Main.cpp
+++ b/cpp/src/slice2html/Main.cpp