On 11-07-18 5:03 PM, cvs@abisource.com wrote:
> +UT_UCS4Char* UT_UCS4String::begin() const
> +{
> + return pimpl->size() ? pimpl->data() : 0;
> +}
> +
> +UT_UCS4Char* UT_UCS4String::end() const
> +{
> + UT_UCS4Char* b = begin();
> + if( !b )
> + return b;
> +
> + std::advance( b, length() );
> + return b;
> +}
Shouldn't this return a const UT_UCS4Char * instead? Since "this" is
immutable, its content should be too.
Hub
Received on Tue Jul 19 05:33:56 2011
This archive was generated by hypermail 2.1.8 : Tue Jul 19 2011 - 05:33:57 CEST