summaryrefslogtreecommitdiff
path: root/shared/com_ptr.h
diff options
context:
space:
mode:
Diffstat (limited to 'shared/com_ptr.h')
-rw-r--r--shared/com_ptr.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/shared/com_ptr.h b/shared/com_ptr.h
index f8331220..6c7a62ab 100644
--- a/shared/com_ptr.h
+++ b/shared/com_ptr.h
@@ -46,13 +46,13 @@ public:
private:
T* ptr;
- struct ConversionToBool
+ struct ConversionToBool
{
int dummy;
};
public:
- operator int ConversionToBool::*() const; //use member pointer as implicit conversion to bool (C++ Templates - Vandevoorde/Josuttis; chapter 20)
+ operator int ConversionToBool::* () const; //use member pointer as implicit conversion to bool (C++ Templates - Vandevoorde/Josuttis; chapter 20)
};
@@ -181,7 +181,7 @@ ComPtr<T>::operator bool() const
template <class T>
inline
-ComPtr<T>::operator int ComPtr<T>::ConversionToBool::*() const
+ComPtr<T>::operator int ComPtr<T>::ConversionToBool::* () const
{
return ptr != NULL ? &ConversionToBool::dummy : NULL;
}
bgstack15