# HG changeset patch # User Frank Benoit # Date 1220830533 -7200 # Node ID 0f7ac29ac72685f7ef20f2bc7cd33cf8bfdf75c8 # Parent 9f01a0643e26c325db6f6106af744fe05efe4013# Parent 77fa7f3ab37e47f15ac82a0ebe8d7c3925b8dfa1 merge diff -r 77fa7f3ab37e -r 0f7ac29ac726 dwt/dwthelper/utils.d --- a/dwt/dwthelper/utils.d Mon Sep 08 01:33:00 2008 +0200 +++ b/dwt/dwthelper/utils.d Mon Sep 08 01:35:33 2008 +0200 @@ -860,6 +860,10 @@ return str; } +/++ + + This is like tango.stdc.stringz.toStringz, but in case of an empty input string, + + this function returns a pointer to a null value instead of a null ptr. + +/ public char* toStringzValidPtr( String src ){ if( src ){ return src.toStringz(); diff -r 77fa7f3ab37e -r 0f7ac29ac726 dwt/graphics/Device.d --- a/dwt/graphics/Device.d Mon Sep 08 01:33:00 2008 +0200 +++ b/dwt/graphics/Device.d Mon Sep 08 01:35:33 2008 +0200 @@ -698,9 +698,7 @@ Device dev = cast(Device)user_data; if (dev.warningLevel is 0) { if (DEBUG || dev.debugging) { - foreach( msg; (new Exception ("")).info ){ - Stderr.formatln( "trc {}", msg ); - } + ExceptionPrintStackTrace(new Exception ("")); } OS.g_log_default_handler (log_domain, log_level, message, user_data); } diff -r 77fa7f3ab37e -r 0f7ac29ac726 dwt/widgets/TableItem.d --- a/dwt/widgets/TableItem.d Mon Sep 08 01:33:00 2008 +0200 +++ b/dwt/widgets/TableItem.d Mon Sep 08 01:35:33 2008 +0200 @@ -1234,7 +1234,6 @@ * @param images the array of new images * * @exception IllegalArgumentException * @exception DWTException * @exception DWTException