forked from qt-creator/qt-creator
C++: Fix Qt dependency (Q_UNLIKELY) in 3rdparty/cplusplus
Change-Id: I37ffb657c9e042cc1c186895efd9c58fe6e332fd Reviewed-by: Przemyslaw Gorszkowski <pgorszkowski@gmail.com> Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
committed by
Erik Verbruggen
parent
bf3d142418
commit
b1bb093d15
3
src/libs/3rdparty/cplusplus/Lexer.h
vendored
3
src/libs/3rdparty/cplusplus/Lexer.h
vendored
@@ -24,7 +24,6 @@
|
||||
#include "CPlusPlusForwardDeclarations.h"
|
||||
#include "Token.h"
|
||||
|
||||
|
||||
namespace CPlusPlus {
|
||||
|
||||
class CPLUSPLUS_EXPORT Lexer
|
||||
@@ -100,7 +99,7 @@ private:
|
||||
inline void yyinp()
|
||||
{
|
||||
_yychar = *++_currentChar;
|
||||
if (Q_UNLIKELY(_yychar == '\n'))
|
||||
if (CPLUSPLUS_UNLIKELY(_yychar == '\n'))
|
||||
pushLineStartOffset();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user