[Kstars-devel] branches/kstars/summer/kstars/kstars/comast

Khudyakov Alexey alexey.skladnoy at gmail.com
Sun Jul 26 16:35:48 CEST 2009


On Воскресенье 26 июля 2009 18:06:09 Prakash Mohan wrote:
> SVN commit 1002594 by prakash:
>
> Replacing all the Overwrite warning dialog calls using a pre-defined
> warning function from the namespace rather than having to declare the
> enitre KMessageBox::warning(..) all over everytime. Thanks Alexey for
> suggesting this.
>
> CCMAIL: kstars-devel at kde.org
>
BTW you can hide warningOverwrite in anonymous namespace as implementation 
detail. It will be unaccessible to anyone outside equipmentwriter.cpp. It's 
done like that:

namespace /* No name. This is anonymous namespace */
{
  /* here comes functions and everything that should be hidden. 
  It won't be accessile outside of this translation unit
  */
}



More information about the Kstars-devel mailing list