summaryrefslogtreecommitdiffstats
path: root/src/activeqt/shared/qaxtypefunctions.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/activeqt/shared/qaxtypefunctions.h')
-rw-r--r--src/activeqt/shared/qaxtypefunctions.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/activeqt/shared/qaxtypefunctions.h b/src/activeqt/shared/qaxtypefunctions.h
index 74dfc89..d4fb604 100644
--- a/src/activeqt/shared/qaxtypefunctions.h
+++ b/src/activeqt/shared/qaxtypefunctions.h
@@ -68,7 +68,7 @@ struct IAxServerBase : public IUnknown
static inline BSTR QStringToBSTR(const QString &str)
{
- return SysAllocStringLen((OLECHAR*)str.unicode(), str.length());
+ return SysAllocStringLen(reinterpret_cast<const OLECHAR*>(str.unicode()), UINT(str.length()));
}
static inline uint QColorToOLEColor(const QColor &col)