[fix](function) check return type is nullptr in FunctionBasePtr::build ( … 0800ba0 ce 52c2c17 Mryange requested a review from yiguolei as a code owner April 2, 2025 04:40 Contributor Thearas commented Apr 2
#include <iostream> void processPointer(int* ptr) { if (ptr != nullptr) { std::cout << "Value: " << *ptr << std::endl; } else { std::cout << "Pointer is null!" << std::endl; } } int main() { int value = 42; int* ptr...
The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#) - [fix] Avoid ruby compiler problem (v2): CHECK_NE(unique_ptr, nullptr)…· grpc/grpc@94f3671
if (GEngine->GameViewport != NULL) { ClearDebugDisplayProperties(); } if( GEngine ) { GEngine->WorldDestroyed( WorldContext.World() ); } ... } PVS-Studio's diagnostic message: V595 The 'GEngine' pointer was utilized before it was verified against nullptr. Check lines: 9714, 9719....
Shared pointer parameter 'symbol' is passed by reference and not reset or reassigned. Use T* or T& instead. See C++ Core Guidelines R.35.C26418 NO_VALUE_OR_CONST_REF_SHARED_PTR Shared pointer parameter 'symbol' is not copied or moved. Use T* or T& instead. See C++ Core Guidelines ...
}Checking for nullptr is pointless here: if the new call causes an error, the std::bad_alloc exception is thrown. If there's no need to throw an exception, one can use the std::nothrow construction — in this case the null pointer will be returned....
Shared pointer parameter 'symbol' is passed by reference and not reset or reassigned. Use T* or T& instead. See C++ Core Guidelines R.35.C26418 NO_VALUE_OR_CONST_REF_SHARED_PTR Shared pointer parameter 'symbol' is not copied or moved. Use T* or T& instead. See C++ Core Guidelines ...
SHARED_POINTER Group C26414 RESET_LOCAL_SMART_PTR Move, copy, reassign, or reset a local smart pointer 'symbol'. See C++ Core Guidelines R.5. C26415 SMART_PTR_NOT_NEEDED Smart pointer parameter 'symbol' is used only to access contained pointer. Use T* or T& instead. See C++ Core Guid...
auto ret = CompatibleRet::Ptr::create(); ret->code = rootObj.value(kFieldCode).toInt(); ret->message = rootObj.value(kFieldMsg).toString(); auto extObj = rootObj.value(kFieldExt).toObject(); if (!extObj.isEmpty()) { ret->ext.code = extObj.value(kFieldCode).toInt(); ret...
Search or jump to... Search code, repositories, users, issues, pull requests... Provide feedback We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your...