[Patch] Fix undeleted "static QFont *_font" in kglobalsettings.cpp

Johannes Sixt j.sixt at viscovery.net
Fri Dec 5 07:58:18 GMT 2008


Friedrich W. H. Kossebau schrieb:
> 1. How to set an array of pointers all to 0 most efficiently (mFonts)?

#include <algorithm>

std::fill_n(mFonts, FontCount, (QFont*)0);

or

std::fill_n<QFont**,int,QFont*>(mFonts, FontCount, 0);

-- Hannes




More information about the kde-core-devel mailing list