diff options
| -rw-r--r-- | doc/ScintillaHistory.html | 1 | ||||
| -rw-r--r-- | qt/ScintillaEditBase/ScintillaEditBase.cpp | 6 | 
2 files changed, 4 insertions, 3 deletions
| diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 0453fc253..4c8fbe1d3 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -404,6 +404,7 @@  	<td>Mark Yen</td>  	<td>Philippe Elsass</td>  	<td>Dimitar Zhekov</td> +	<td>Fan Yang</td>      </tr>      </table>      <p> 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());  		} | 
