aboutsummaryrefslogtreecommitdiffstats
path: root/src/3rdparty
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2021-10-15 16:09:09 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2021-10-18 12:39:28 +0200
commit72c3befaa24e7e6021898061b5bc5389554e7126 (patch)
tree5aedde3f9e942a5fbb4b25ac03138d4ede5dceea /src/3rdparty
parente7618dba5b4e4b59331693e7b3a38601822b6ffb (diff)
Replace 0 pointer constants with nullptr
Replaced in most common patterns. Change-Id: Idcaff1f2e915f29922702d3600a2e5f1e2418a7a Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/3rdparty')
-rw-r--r--src/3rdparty/masm/yarr/YarrPattern.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/3rdparty/masm/yarr/YarrPattern.h b/src/3rdparty/masm/yarr/YarrPattern.h
index 10ea2c5b94..ce2fe6ec00 100644
--- a/src/3rdparty/masm/yarr/YarrPattern.h
+++ b/src/3rdparty/masm/yarr/YarrPattern.h
@@ -21,7 +21,7 @@
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#pragma once
@@ -169,7 +169,7 @@ struct PatternTerm {
quantityType = QuantifierFixedCount;
quantityMinCount = quantityMaxCount = 1;
}
-
+
PatternTerm(Type type, bool invert = false)
: type(type)
, m_capture(false)
@@ -199,7 +199,7 @@ struct PatternTerm {
quantityType = QuantifierFixedCount;
quantityMinCount = quantityMaxCount = 1;
}
-
+
static PatternTerm ForwardReference()
{
return PatternTerm(TypeForwardReference);
@@ -219,7 +219,7 @@ struct PatternTerm {
{
return PatternTerm(TypeAssertionWordBoundary, invert);
}
-
+
bool invert()
{
return m_invert;
@@ -274,18 +274,18 @@ public:
ASSERT(m_terms.size());
return m_terms[m_terms.size() - 1];
}
-
+
void removeLastTerm()
{
ASSERT(m_terms.size());
m_terms.shrink(m_terms.size() - 1);
}
-
+
void setOnceThrough()
{
m_onceThrough = true;
}
-
+
bool onceThrough()
{
return m_onceThrough;
@@ -305,12 +305,12 @@ public:
struct PatternDisjunction {
WTF_MAKE_FAST_ALLOCATED;
public:
- PatternDisjunction(PatternAlternative* parent = 0)
+ PatternDisjunction(PatternAlternative *parent = nullptr)
: m_parent(parent)
, m_hasFixedSize(false)
{
}
-
+
PatternAlternative* addNewAlternative()
{
m_alternatives.append(std::make_unique<PatternAlternative>(this));