Re: CVS: commit tomas_f abi/src/af/xap/xp xap_Prefs.cpp xap_Prefs.h

From: Hubert Figuiere <hfiguiere_at_teaser.fr>
Date: Tue Jan 30 2007 - 00:11:28 CET

cvs@abisource.com wrote:
> +bool XAP_FontSettings::isOnExcludeList (const char * name) const
> +{
> + if (m_bInclude)
> + return false;
> +
> + if (!m_vecFonts.size())
> + return false;
> +
> + std::vector<UT_UTF8String> & v =
> + const_cast<std::vector<UT_UTF8String> &> (m_vecFonts);
> +
> + std::vector<UT_UTF8String>::iterator I =
> + find(v.begin(), v.end(), name);

Please use const_iterator for those cases and no const_cast<>
I'm gonna commit it.

Hub
Received on Tue Jan 30 00:11:22 2007

This archive was generated by hypermail 2.1.8 : Tue Jan 30 2007 - 00:11:25 CET