Re: Adding new data members to classes without d-pointer

2012-07-27 Thread David Faure
On Thursday 26 July 2012 07:59:35 Carlos Ernesto Alies Fuentes wrote: > { > FooPrivate* ret = d_func()->value( foo, 0 ); > ///delete is called without validating the pointer > delete ret; That part is OK. Delete NULL is valid C++ (and does nothing). -- David Faure, fa...@kde.org, http://

[CMake question] how to use kdeclarative library?

2012-07-27 Thread Viranch Mehta
Hey folks, I'm working on QML port of a KDE game and I need to use KDeclarative for some stuff, so I want to know what I need to put in my CMakeLists.txt. For now I've blindly added the three lines: 1. find_package(KDeclarative REQUIRED) 2. include_directories( ${KDECLARATIVE_INCLUDE_DIR} ) 3.