diff options
author | Charles E. Rolke <chug@apache.org> | 2014-01-15 17:31:48 +0000 |
---|---|---|
committer | Charles E. Rolke <chug@apache.org> | 2014-01-15 17:31:48 +0000 |
commit | c37116034c78219fd12f87a5313ff4f08b78c2a5 (patch) | |
tree | 4a1ce05c403a7a22bbe765a2d059b1266f6b1c3b | |
parent | 70d3a74e105bb6ca0be37c2eb89b92c61f1a1aae (diff) | |
download | qpid-python-c37116034c78219fd12f87a5313ff4f08b78c2a5.tar.gz |
NO-JIRA: Reformat white space with Visual Studio 2010 ^K^F Format Selection.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1558481 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | qpid/cpp/bindings/qpid/dotnet/src/Duration.h | 12 | ||||
-rw-r--r-- | qpid/cpp/bindings/qpid/dotnet/src/QpidException.h | 10 | ||||
-rw-r--r-- | qpid/cpp/bindings/qpid/dotnet/src/Receiver.cpp | 18 | ||||
-rw-r--r-- | qpid/cpp/bindings/qpid/dotnet/src/Sender.cpp | 4 | ||||
-rw-r--r-- | qpid/cpp/bindings/qpid/dotnet/src/Session.cpp | 4 | ||||
-rw-r--r-- | qpid/cpp/bindings/qpid/dotnet/src/TypeTranslator.cpp | 24 | ||||
-rw-r--r-- | qpid/cpp/bindings/qpid/dotnet/src/TypeTranslator.h | 25 |
7 files changed, 54 insertions, 43 deletions
diff --git a/qpid/cpp/bindings/qpid/dotnet/src/Duration.h b/qpid/cpp/bindings/qpid/dotnet/src/Duration.h index c77f5fc868..d449992cdc 100644 --- a/qpid/cpp/bindings/qpid/dotnet/src/Duration.h +++ b/qpid/cpp/bindings/qpid/dotnet/src/Duration.h @@ -42,14 +42,14 @@ namespace Messaging { public:
- Duration(const Duration % rhs) :
- milliseconds(rhs.milliseconds) {}
+ Duration(const Duration % rhs)
+ : milliseconds(rhs.milliseconds) {}
- explicit Duration(System::UInt64 mS) :
- milliseconds(mS) {}
+ explicit Duration(System::UInt64 mS)
+ : milliseconds(mS) {}
- Duration() :
- milliseconds(System::UInt64::MaxValue) {}
+ Duration()
+ : milliseconds(System::UInt64::MaxValue) {}
property System::UInt64 Milliseconds
{
diff --git a/qpid/cpp/bindings/qpid/dotnet/src/QpidException.h b/qpid/cpp/bindings/qpid/dotnet/src/QpidException.h index dc042ed939..bf02134203 100644 --- a/qpid/cpp/bindings/qpid/dotnet/src/QpidException.h +++ b/qpid/cpp/bindings/qpid/dotnet/src/QpidException.h @@ -29,13 +29,13 @@ using namespace System; [Serializable]
public ref class QpidException : System::Exception
{
- public:
+public:
- QpidException()
- : System::Exception() {}
+ QpidException()
+ : System::Exception() {}
- QpidException(String^ estring)
- : System::Exception(estring) {}
+ QpidException(String^ estring)
+ : System::Exception(estring) {}
};
diff --git a/qpid/cpp/bindings/qpid/dotnet/src/Receiver.cpp b/qpid/cpp/bindings/qpid/dotnet/src/Receiver.cpp index 43bb7dd3cb..5dbc83dcbf 100644 --- a/qpid/cpp/bindings/qpid/dotnet/src/Receiver.cpp +++ b/qpid/cpp/bindings/qpid/dotnet/src/Receiver.cpp @@ -53,8 +53,8 @@ namespace Messaging { // unmanaged clone
Receiver::Receiver(const ::qpid::messaging::Receiver & r,
- Org::Apache::Qpid::Messaging::Session ^ sessRef) :
- parentSession(sessRef)
+ Org::Apache::Qpid::Messaging::Session ^ sessRef)
+ : parentSession(sessRef)
{
System::Exception ^ newException = nullptr;
@@ -102,8 +102,8 @@ namespace Messaging { // Copy constructor look-alike (C#)
- Receiver::Receiver(const Receiver ^ receiver) :
- parentSession(receiver->parentSession)
+ Receiver::Receiver(const Receiver ^ receiver)
+ : parentSession(receiver->parentSession)
{
System::Exception ^ newException = nullptr;
@@ -126,8 +126,8 @@ namespace Messaging { }
// Copy constructor implicitly dereferenced (C++)
- Receiver::Receiver(const Receiver % receiver) :
- parentSession(receiver.parentSession)
+ Receiver::Receiver(const Receiver % receiver)
+ : parentSession(receiver.parentSession)
{
System::Exception ^ newException = nullptr;
@@ -349,10 +349,10 @@ namespace Messaging { try
{
- msclr::lock lk(privateLock);
- ThrowIfDisposed();
+ msclr::lock lk(privateLock);
+ ThrowIfDisposed();
- nativeObjPtr->close();
+ nativeObjPtr->close();
}
catch (const ::qpid::types::Exception & error)
{
diff --git a/qpid/cpp/bindings/qpid/dotnet/src/Sender.cpp b/qpid/cpp/bindings/qpid/dotnet/src/Sender.cpp index 4e3502f2fd..8600d0fd8c 100644 --- a/qpid/cpp/bindings/qpid/dotnet/src/Sender.cpp +++ b/qpid/cpp/bindings/qpid/dotnet/src/Sender.cpp @@ -50,8 +50,8 @@ namespace Messaging { // unmanaged clone
Sender::Sender(const ::qpid::messaging::Sender & s,
- Org::Apache::Qpid::Messaging::Session ^ sessRef) :
- parentSession(sessRef)
+ Org::Apache::Qpid::Messaging::Session ^ sessRef)
+ : parentSession(sessRef)
{
System::Exception ^ newException = nullptr;
diff --git a/qpid/cpp/bindings/qpid/dotnet/src/Session.cpp b/qpid/cpp/bindings/qpid/dotnet/src/Session.cpp index 294004b537..c5f00e86ab 100644 --- a/qpid/cpp/bindings/qpid/dotnet/src/Session.cpp +++ b/qpid/cpp/bindings/qpid/dotnet/src/Session.cpp @@ -55,8 +55,8 @@ namespace Messaging { // unmanaged clone
Session::Session(const ::qpid::messaging::Session & session,
- Org::Apache::Qpid::Messaging::Connection ^ connRef) :
- parentConnectionp(connRef)
+ Org::Apache::Qpid::Messaging::Connection ^ connRef)
+ : parentConnectionp(connRef)
{
System::Exception ^ newException = nullptr;
diff --git a/qpid/cpp/bindings/qpid/dotnet/src/TypeTranslator.cpp b/qpid/cpp/bindings/qpid/dotnet/src/TypeTranslator.cpp index 6c67191576..9e353cad12 100644 --- a/qpid/cpp/bindings/qpid/dotnet/src/TypeTranslator.cpp +++ b/qpid/cpp/bindings/qpid/dotnet/src/TypeTranslator.cpp @@ -42,8 +42,9 @@ namespace Messaging { // The given object is a Dictionary.
// Add its elements to the qpid map.
//
- void TypeTranslator::ManagedToNative(QpidMap ^ theDictionary,
- ::qpid::types::Variant::Map & qpidMap)
+ void TypeTranslator::ManagedToNative(
+ QpidMap ^ theDictionary,
+ ::qpid::types::Variant::Map & qpidMap)
{
// iterate the items, converting each to a variant and adding to the map
for each (System::Collections::Generic::KeyValuePair
@@ -107,8 +108,9 @@ namespace Messaging { // The given object is a List.
// Add its elements to the qpid list.
//
- void TypeTranslator::ManagedToNative(QpidList ^ theList,
- ::qpid::types::Variant::List & qpidList)
+ void TypeTranslator::ManagedToNative(
+ QpidList ^ theList,
+ ::qpid::types::Variant::List & qpidList)
{
// iterate the items, converting each to a variant and adding to the map
for each (System::Object ^ listObj in theList)
@@ -162,8 +164,9 @@ namespace Messaging { // Returns a variant representing simple native type object.
// Not to be called for Map/List objects.
//
- void TypeTranslator::ManagedToNativeObject(System::Object ^ managedValue,
- ::qpid::types::Variant & qpidVariant)
+ void TypeTranslator::ManagedToNativeObject(
+ System::Object ^ managedValue,
+ ::qpid::types::Variant & qpidVariant)
{
System::Type ^ typeP = (*managedValue).GetType();
System::TypeCode typeCode = System::Type::GetTypeCode( typeP );
@@ -257,8 +260,9 @@ namespace Messaging { // Given a user Dictionary and a qpid map,
// extract the qpid elements and put them into the dictionary.
//
- void TypeTranslator::NativeToManaged(::qpid::types::Variant::Map & qpidMap,
- QpidMap ^ dict)
+ void TypeTranslator::NativeToManaged(
+ ::qpid::types::Variant::Map & qpidMap,
+ QpidMap ^ dict)
{
// For each object in the message map,
// create a .NET object and add it to the dictionary.
@@ -357,7 +361,9 @@ namespace Messaging { }
- void TypeTranslator::NativeToManaged(::qpid::types::Variant::List & qpidList, QpidList ^ managedList)
+ void TypeTranslator::NativeToManaged(
+ ::qpid::types::Variant::List & qpidList,
+ QpidList ^ managedList)
{
// For each object in the qpidList
// create a .NET object and add it to the managed List.
diff --git a/qpid/cpp/bindings/qpid/dotnet/src/TypeTranslator.h b/qpid/cpp/bindings/qpid/dotnet/src/TypeTranslator.h index add30a862c..5fdccaab8e 100644 --- a/qpid/cpp/bindings/qpid/dotnet/src/TypeTranslator.h +++ b/qpid/cpp/bindings/qpid/dotnet/src/TypeTranslator.h @@ -45,27 +45,32 @@ namespace Messaging { public:
// The given object is a managed Dictionary.
// Add its elements to the qpid map.
- static void ManagedToNative(QpidMap ^ theDictionary,
- ::qpid::types::Variant::Map & qpidMap);
+ static void ManagedToNative(
+ QpidMap ^ theDictionary,
+ ::qpid::types::Variant::Map & qpidMap);
// The given object is a managed List.
// Add its elements to the qpid list.
- static void ManagedToNative(QpidList ^ theList,
- ::qpid::types::Variant::List & qpidList);
+ static void ManagedToNative(
+ QpidList ^ theList,
+ ::qpid::types::Variant::List & qpidList);
// The given object is a simple managed type (not a Dictionary or List)
// Returns a variant representing simple native type object.
- static void ManagedToNativeObject(System::Object ^ managedValue,
- ::qpid::types::Variant & qpidVariant);
+ static void ManagedToNativeObject(
+ System::Object ^ managedValue,
+ ::qpid::types::Variant & qpidVariant);
// The given object is a qpid map.
// Add its elements to the managed Dictionary.
- static void NativeToManaged(::qpid::types::Variant::Map & qpidMap,
- QpidMap ^ dict);
+ static void NativeToManaged(
+ ::qpid::types::Variant::Map & qpidMap,
+ QpidMap ^ dict);
// The given object is a qpid list.
// Add its elements to the managed List.
- static void NativeToManaged(::qpid::types::Variant::List & qpidList,
- QpidList ^ managedList);
+ static void NativeToManaged(
+ ::qpid::types::Variant::List & qpidList,
+ QpidList ^ managedList);
};
}}}}
|