summaryrefslogtreecommitdiff
path: root/idl/inc/lex.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-03-23 07:29:17 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-03-23 07:29:17 +0100
commit0a92c29e4747f2289514cdb1030900b7c1cbb6ba (patch)
tree3aa3661c368d8df8ab51880e23dda0c604024af5 /idl/inc/lex.hxx
parenta2201cba9f22c8aff57fb59cb57aa4e09ec5e555 (diff)
This code trades in 'char' entities disguised as 'int'
(with EOF represented as 0), so better actually use 'char'. Change-Id: Id9c684c833b0d46f8a51a34aa2c4b78a75e2d3a5
Diffstat (limited to 'idl/inc/lex.hxx')
-rw-r--r--idl/inc/lex.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/idl/inc/lex.hxx b/idl/inc/lex.hxx
index 20c7b4337bde..8a71349971c5 100644
--- a/idl/inc/lex.hxx
+++ b/idl/inc/lex.hxx
@@ -100,7 +100,7 @@ class SvTokenStream
{
sal_uLong nLine, nColumn;
sal_Int32 nBufPos;
- int c; // next character
+ char c; // next character
static const sal_uInt16 nTabSize = 4; // length of tabulator
OString aStrTrue;
OString aStrFalse;
@@ -115,8 +115,8 @@ class SvTokenStream
void InitCtor();
- int GetNextChar();
- int GetFastNextChar()
+ char GetNextChar();
+ char GetFastNextChar()
{
return (nBufPos < aBufStr.getLength())
? aBufStr[nBufPos++]