diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-04-28 17:53:33 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-04-28 18:26:54 +0200 |
commit | ef2c0e73630d3c74f6fc3eda8416488356ff1b7d (patch) | |
tree | fa2e682ec371c6d985ed8317f9bcd35dd577307b /vcl/unx/generic | |
parent | 229b3a3e0a74c8fa3a1629fc1dbf858dcf2a9c50 (diff) |
loplugin:salunicodeliteral: vcl
Change-Id: I4a982da10ad76f8ae05355cec9629b906c95afdb
Diffstat (limited to 'vcl/unx/generic')
-rw-r--r-- | vcl/unx/generic/app/i18n_cb.cxx | 4 | ||||
-rw-r--r-- | vcl/unx/generic/window/salframe.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/vcl/unx/generic/app/i18n_cb.cxx b/vcl/unx/generic/app/i18n_cb.cxx index 1ab6c61b08aa..d62ca0ad75bf 100644 --- a/vcl/unx/generic/app/i18n_cb.cxx +++ b/vcl/unx/generic/app/i18n_cb.cxx @@ -112,7 +112,7 @@ Preedit_DeleteText(preedit_text_t *ptext, int from, int howmuch) } // NULL-terminate the string - ptext->pUnicodeBuffer[ptext->nLength] = (sal_Unicode)0; + ptext->pUnicodeBuffer[ptext->nLength] = u'\0'; } // reallocate the textbuffer with sufficiently large size 2^x @@ -220,7 +220,7 @@ Preedit_InsertText(preedit_text_t *pText, XIMText *pInsertText, int where) pText->nLength += howmany; // NULL-terminate the string - pText->pUnicodeBuffer[pText->nLength] = (sal_Unicode)0; + pText->pUnicodeBuffer[pText->nLength] = u'\0'; } // Handle the change of attributes in a preedit_draw_callback diff --git a/vcl/unx/generic/window/salframe.cxx b/vcl/unx/generic/window/salframe.cxx index 39142e456ffd..03a52f055e41 100644 --- a/vcl/unx/generic/window/salframe.cxx +++ b/vcl/unx/generic/window/salframe.cxx @@ -3204,12 +3204,12 @@ long X11SalFrame::HandleKeyEvent( XKeyEvent *pEvent ) } else if( nSeqKeyCode >= KEY_0 && nSeqKeyCode <= KEY_9 ) { - if( appendUnicodeSequence( sal_Unicode( '0' ) + sal_Unicode(nSeqKeyCode - KEY_0) ) ) + if( appendUnicodeSequence( u'0' + sal_Unicode(nSeqKeyCode - KEY_0) ) ) return 1; } else if( nSeqKeyCode >= KEY_A && nSeqKeyCode <= KEY_F ) { - if( appendUnicodeSequence( sal_Unicode( 'a' ) + sal_Unicode(nSeqKeyCode - KEY_A) ) ) + if( appendUnicodeSequence( u'a' + sal_Unicode(nSeqKeyCode - KEY_A) ) ) return 1; } else |