We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

SmartPointer code is not checking is method IsNull exists

Hi, we had a clash when our QTests when linking to QWidgets because smart_ptr.h line 1575 (probably 1584 and maybe more) item calls IsNull() which doesn’t exists, it should check it it has the method like some other of your code does.
Thanks.

@daniel.nicoletti Thank you for reporting this problem to us. I have logged it as WORDSCPP-1170. We will keep you informed and let you know once there are news about it.

Hi @daniel.nicoletti. Can you give us more information about how you use System::SharedPtr? Currently, only classes inherited from System::Object can be managed by System::SharedPtr.

A test case:
Qt::KeyboardModifiers stateKey;
Q_ASSERT(stateKey == 0);
The issue is not my use but rather that it is trying to call IsNull() on Qt stuff like the above, which doesn’t have a IsNull() method. Checking for IsNull() on the template should be enough.

CodePorting.Native.Cs2Cpp_api_22.1/include/system/smart_ptr.h:1575:14: error: ‘const class 
QFlags<Qt::KeyboardModifier>’ has no member named ‘IsNull’
1575 |     return x.IsNull();
     |            ~~^~~~~~

@daniel.nicoletti The issue has been resolved, the fix will be included into the next 22.3 version of Aspose.Words for C++. We will additionally notify once it is available.

The issues you have found earlier (filed as WORDSCPP-1170) have been fixed in this Aspose.Words for Java 22.3 update.