summaryrefslogtreecommitdiff
path: root/shared/com_ptr.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:10:11 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:10:11 +0200
commitc0cdb2ad99a1e2a6ade5ce76c91177a79258e669 (patch)
tree4701a015385d9a6a5a4ba99a8f1f5d400fff26b1 /shared/com_ptr.h
parent3.13 (diff)
downloadFreeFileSync-c0cdb2ad99a1e2a6ade5ce76c91177a79258e669.tar.gz
FreeFileSync-c0cdb2ad99a1e2a6ade5ce76c91177a79258e669.tar.bz2
FreeFileSync-c0cdb2ad99a1e2a6ade5ce76c91177a79258e669.zip
3.14
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