summaryrefslogtreecommitdiff
path: root/idl/source/cmptools/lex.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-05 15:02:51 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-06 08:15:57 +0200
commitde8caac6bee3237ba634e7dce2e4635dc8bba57b (patch)
tree9260fb99b4f6de1619df46a11aa388ad8d42db63 /idl/source/cmptools/lex.cxx
parent690f2f5c4633780734a63305fd16733fb1344c74 (diff)
replace SVSTREAM_OK with ERRCODE_NONE
since the first is #define'd to the second, and offers no extra value Change-Id: I2c67e09ea3aa5361b8e7dfe7a20858c6ae054450 Reviewed-on: https://gerrit.libreoffice.org/38406 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'idl/source/cmptools/lex.cxx')
-rw-r--r--idl/source/cmptools/lex.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/idl/source/cmptools/lex.cxx b/idl/source/cmptools/lex.cxx
index fa4c9f66d24c..8f1d42f06d21 100644
--- a/idl/source/cmptools/lex.cxx
+++ b/idl/source/cmptools/lex.cxx
@@ -202,7 +202,7 @@ bool SvTokenStream::MakeToken( SvToken & rToken )
nColumn += c == '\t' ? nTabSize : 1;
}
}
- while( 0 == c && !IsEof() && ( SVSTREAM_OK == pInStream->GetError() ) );
+ while( 0 == c && !IsEof() && ( ERRCODE_NONE == pInStream->GetError() ) );
sal_uLong nLastLine = nLine;
sal_uLong nLastColumn = nColumn;
@@ -239,8 +239,8 @@ bool SvTokenStream::MakeToken( SvToken & rToken )
}
c = GetFastNextChar();
}
- while( '/' != c && !IsEof() && ( SVSTREAM_OK == pInStream->GetError() ) );
- if( IsEof() || ( SVSTREAM_OK != pInStream->GetError() ) )
+ while( '/' != c && !IsEof() && ( ERRCODE_NONE == pInStream->GetError() ) );
+ if( IsEof() || ( ERRCODE_NONE != pInStream->GetError() ) )
return false;
c = GetNextChar();
rToken.nType = SVTOKENTYPE::Comment;
@@ -275,7 +275,7 @@ bool SvTokenStream::MakeToken( SvToken & rToken )
else
aStr.append(c);
}
- if( IsEof() || ( SVSTREAM_OK != pInStream->GetError() ) )
+ if( IsEof() || ( ERRCODE_NONE != pInStream->GetError() ) )
return false;
rToken.nType = SVTOKENTYPE::String;
rToken.aString = aStr.makeStringAndClear();
@@ -330,7 +330,7 @@ bool SvTokenStream::MakeToken( SvToken & rToken )
}
rToken.SetLine( nLastLine );
rToken.SetColumn( nLastColumn );
- return pInStream->GetError() == SVSTREAM_OK;
+ return pInStream->GetError() == ERRCODE_NONE;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */