From ea7d11b1db8361a555d2583b4f6c2f585adc98ed Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Sat, 23 Jun 2018 16:13:50 -0700 Subject: [PATCH] Twine: Make isNull() public. (#1162) This makes it possible to pass "null" Twines and detect it in the callee. --- wpiutil/src/main/native/include/wpi/Twine.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wpiutil/src/main/native/include/wpi/Twine.h b/wpiutil/src/main/native/include/wpi/Twine.h index bbc96448d7..5d0e2d2946 100644 --- a/wpiutil/src/main/native/include/wpi/Twine.h +++ b/wpiutil/src/main/native/include/wpi/Twine.h @@ -179,11 +179,6 @@ namespace wpi { assert(isValid() && "Invalid twine!"); } - /// Check for the null twine. - bool isNull() const { - return getLHSKind() == NullKind; - } - /// Check for the empty twine. bool isEmpty() const { return getLHSKind() == EmptyKind; @@ -380,6 +375,11 @@ namespace wpi { /// @name Predicate Operations /// @{ + /// Check for the null twine. + bool isNull() const { + return getLHSKind() == NullKind; + } + /// Check if this twine is trivially empty; a false return value does not /// necessarily mean the twine is empty. bool isTriviallyEmpty() const {