* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
-#include <assert.h>
+#include <cassert>
#include <QComboBox>
Getter getter, Setter setter) :
Property(name, getter, setter),
values_(values),
- selector_(NULL)
-{
-}
-
-Enum::~Enum()
+ selector_(nullptr)
{
}
return selector_;
if (!getter_)
- return NULL;
+ return nullptr;
Glib::VariantBase variant = getter_();
if (!variant.gobj())
- return NULL;
+ return nullptr;
selector_ = new QComboBox(parent);
for (unsigned int i = 0; i < values_.size(); i++) {