diff options
Diffstat (limited to 'qt/ScintillaEditBase')
| -rw-r--r-- | qt/ScintillaEditBase/ScintillaEditBase.cpp | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/qt/ScintillaEditBase/ScintillaEditBase.cpp b/qt/ScintillaEditBase/ScintillaEditBase.cpp index b6cca8166..067b0f4ab 100644 --- a/qt/ScintillaEditBase/ScintillaEditBase.cpp +++ b/qt/ScintillaEditBase/ScintillaEditBase.cpp @@ -469,7 +469,7 @@ QVariant ScintillaEditBase::inputMethodQuery(Qt::InputMethodQuery query) const  		{  			char fontName[64];  			int style = send(SCI_GETSTYLEAT, pos); -			int len = send(SCI_STYLEGETFONT, style, (long)fontName); +			int len = send(SCI_STYLEGETFONT, style, (sptr_t)fontName);  			int size = send(SCI_STYLEGETSIZE, style);  			bool italic = send(SCI_STYLEGETITALIC, style);  			int weight = send(SCI_STYLEGETBOLD, style) ? QFont::Bold : -1; @@ -496,7 +496,7 @@ QVariant ScintillaEditBase::inputMethodQuery(Qt::InputMethodQuery query) const  			textRange.chrg = charRange;  			textRange.lpstrText = buffer.data(); -			send(SCI_GETTEXTRANGE, 0, (long)&textRange); +			send(SCI_GETTEXTRANGE, 0, (sptr_t)&textRange);  			return sqt->StringFromDocument(buffer.constData());  		} @@ -504,7 +504,7 @@ QVariant ScintillaEditBase::inputMethodQuery(Qt::InputMethodQuery query) const  		case Qt::ImCurrentSelection:  		{  			QVarLengthArray<char,1024> buffer(send(SCI_GETSELTEXT)); -			send(SCI_GETSELTEXT, 0, (long)buffer.data()); +			send(SCI_GETSELTEXT, 0, (sptr_t)buffer.data());  			return sqt->StringFromDocument(buffer.constData());  		} | 
