From 6882a04fb36642862b11efe514251d32070c3d65 Mon Sep 17 00:00:00 2001 From: Konstantin Tokarev Date: Thu, 25 Aug 2016 19:20:41 +0300 Subject: Imported QtWebKit TP3 (git b57bc6801f1876c3220d5a4bfea33d620d477443) Change-Id: I3b1d8a2808782c9f34d50240000e20cb38d3680f Reviewed-by: Konstantin Tokarev --- Source/JavaScriptCore/yarr/YarrParser.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'Source/JavaScriptCore/yarr/YarrParser.h') diff --git a/Source/JavaScriptCore/yarr/YarrParser.h b/Source/JavaScriptCore/yarr/YarrParser.h index 8c5d71b5f..761acb557 100644 --- a/Source/JavaScriptCore/yarr/YarrParser.h +++ b/Source/JavaScriptCore/yarr/YarrParser.h @@ -29,7 +29,6 @@ #include "Yarr.h" #include #include -#include namespace JSC { namespace Yarr { @@ -119,6 +118,7 @@ private: return; } // Otherwise just fall through - cached character so treat this as Empty. + FALLTHROUGH; case Empty: m_character = ch; @@ -168,7 +168,7 @@ private: case CachedCharacter: // Flush the currently cached character, then fall through. m_delegate.atomCharacterClassAtom(m_character); - + FALLTHROUGH; case Empty: case AfterCharacterClass: m_state = AfterCharacterClass; @@ -186,7 +186,7 @@ private: case CachedCharacterHyphen: m_delegate.atomCharacterClassAtom(m_character); m_delegate.atomCharacterClassAtom('-'); - // fall through + FALLTHROUGH; case AfterCharacterClassHyphen: m_delegate.atomCharacterClassBuiltIn(classID, invert); m_state = Empty; @@ -232,7 +232,7 @@ private: : m_delegate(delegate) , m_backReferenceLimit(backReferenceLimit) , m_err(NoError) - , m_data(pattern.getCharacters()) + , m_data(pattern.characters()) , m_size(pattern.length()) , m_index(0) , m_parenthesesNestingDepth(0) @@ -349,6 +349,7 @@ private: } // Fall-through to handle this as an octal escape. + FALLTHROUGH; } // Octal escape @@ -656,7 +657,9 @@ private: } restoreState(state); - } // if we did not find a complete quantifer, fall through to the default case. + } + // if we did not find a complete quantifer, fall through to the default case. + FALLTHROUGH; default: m_delegate.atomPatternCharacter(consume()); -- cgit v1.2.1