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