Skip to content

Commit 31548e1

Browse files
committed
Static analysis warning fixes
1 parent 563fcef commit 31548e1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Source/PCGExtendedToolkit/Public/Details/PCGExMacros.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,19 @@ if(!SharedContext.Get()){ return false; }
3333
FPCGContext::FSharedContext<FPCGExContext> SharedContext(_HANDLE); \
3434
if(!SharedContext.Get()){ return _RET; }
3535

36-
#define PCGEX_LOG_MISSING_INPUT(_CTX, _MESSAGE) if (!_CTX->bQuietMissingInputError) { PCGE_LOG_C(Error, GraphAndLog, _CTX, _MESSAGE); }
37-
#define PCGEX_LOG_INVALID_INPUT(_CTX, _MESSAGE) if (!_CTX->bQuietInvalidInputWarning) { PCGE_LOG_C(Warning, GraphAndLog, _CTX, _MESSAGE); }
36+
#define PCGEX_LOG_MISSING_INPUT(_CTX, _MESSAGE) if (_CTX && !_CTX->bQuietMissingInputError) { PCGE_LOG_C(Error, GraphAndLog, _CTX, _MESSAGE); }
37+
#define PCGEX_LOG_INVALID_INPUT(_CTX, _MESSAGE) if (_CTX && !_CTX->bQuietInvalidInputWarning) { PCGE_LOG_C(Warning, GraphAndLog, _CTX, _MESSAGE); }
3838

39-
#define PCGEX_LOG_INVALID_SELECTOR_C(_CTX, _NAME, _SELECTOR) if(!_CTX->bQuietMissingAttributeError){ PCGE_LOG_C(Error, GraphAndLog, _CTX, FText::Format(FTEXT("Attribute or property \"{0}\" doesn't exist. (See "#_NAME")"), FText::FromString(PCGEx::GetSelectorDisplayName(_SELECTOR)))); }
40-
#define PCGEX_LOG_INVALID_ATTR_C(_CTX, _NAME, _ATTR) if(!_CTX->bQuietMissingAttributeError){ PCGE_LOG_C(Error, GraphAndLog, _CTX, FText::Format(FTEXT("Attribute \"{0}\" doesn't exist. (See "#_NAME")"), FText::FromName(_ATTR))); }
39+
#define PCGEX_LOG_INVALID_SELECTOR_C(_CTX, _NAME, _SELECTOR) if(_CTX && !_CTX->bQuietMissingAttributeError){ PCGE_LOG_C(Error, GraphAndLog, _CTX, FText::Format(FTEXT("Attribute or property \"{0}\" doesn't exist. (See "#_NAME")"), FText::FromString(PCGEx::GetSelectorDisplayName(_SELECTOR)))); }
40+
#define PCGEX_LOG_INVALID_ATTR_C(_CTX, _NAME, _ATTR) if(_CTX && !_CTX->bQuietMissingAttributeError){ PCGE_LOG_C(Error, GraphAndLog, _CTX, FText::Format(FTEXT("Attribute \"{0}\" doesn't exist. (See "#_NAME")"), FText::FromName(_ATTR))); }
4141

4242
#define PCGEX_QUIET_HANDLING_RET return Factory->InitializationFailurePolicy == EPCGExFilterNoDataFallback::Pass;
4343
#define PCGEX_QUIET_HANDLING (Factory->InitializationFailurePolicy != EPCGExFilterNoDataFallback::Error)
4444
#define PCGEX_LOG_INVALID_SELECTOR_HANDLED_C(_CTX, _NAME, _SELECTOR) if(!PCGEX_QUIET_HANDLING){ PCGEX_LOG_INVALID_SELECTOR_C(_CTX, _NAME, _SELECTOR) }
4545
#define PCGEX_LOG_INVALID_ATTR_HANDLED_C(_CTX, _NAME, _ATTR) if(!PCGEX_QUIET_HANDLING){ PCGEX_LOG_INVALID_ATTR_C(_CTX, _NAME, _ATTR) }
4646

47-
#define PCGEX_LOG_WARN_SELECTOR_C(_CTX, _NAME, _SELECTOR) if(!_CTX->bQuietInvalidInputWarning){ PCGE_LOG_C(Warning, GraphAndLog, _CTX, FText::Format(FTEXT("Attribute or property \"{0}\" doesn't exist. (See "#_NAME")"), FText::FromString(PCGEx::GetSelectorDisplayName(_SELECTOR)))); }
48-
#define PCGEX_LOG_WARN_ATTR_C(_CTX, _NAME, _ATTR) if(!_CTX->bQuietInvalidInputWarning){ PCGE_LOG_C(Warning, GraphAndLog, _CTX, FText::Format(FTEXT("Attribute \"{0}\" doesn't exist. (See "#_NAME")"), FText::FromName(_ATTR))); }
47+
#define PCGEX_LOG_WARN_SELECTOR_C(_CTX, _NAME, _SELECTOR) if(_CTX && !_CTX->bQuietInvalidInputWarning){ PCGE_LOG_C(Warning, GraphAndLog, _CTX, FText::Format(FTEXT("Attribute or property \"{0}\" doesn't exist. (See "#_NAME")"), FText::FromString(PCGEx::GetSelectorDisplayName(_SELECTOR)))); }
48+
#define PCGEX_LOG_WARN_ATTR_C(_CTX, _NAME, _ATTR) if(_CTX && !_CTX->bQuietInvalidInputWarning){ PCGE_LOG_C(Warning, GraphAndLog, _CTX, FText::Format(FTEXT("Attribute \"{0}\" doesn't exist. (See "#_NAME")"), FText::FromName(_ATTR))); }
4949

5050
#define PCGEX_ON_INVALILD_INPUTS(_MSG) bool bHasInvalidInputs = false; ON_SCOPE_EXIT{ if (bHasInvalidInputs){ PCGEX_LOG_INVALID_INPUT(Context, _MSG); } };
5151
#define PCGEX_ON_INVALILD_INPUTS_C(_CTX, _MSG) bool bHasInvalidInputs = false; ON_SCOPE_EXIT{ if (bHasInvalidInputs){ PCGEX_LOG_INVALID_INPUT(_CTX, _MSG); } };

0 commit comments

Comments
 (0)