Apache OpenOffice (AOO) Bugzilla – Issue 123107
remove implicit rtl::O*StringBuffer conversions to char/utf-16 pointers
Last modified: 2013-08-26 08:48:51 UTC
The implicit O*StringBuffer conversions to char/utf-16 pointers does not only facilitate the four bug families seen with the similar OString conversions in bug 123068 where the problems are more described in more detail: - unintended pointer arithmetic instead of appending a value-string to a string - failed tests for the emptiness of a string - unintended template specializations - string buffer lifetime mismanagement but it also introduces a new bug family - failing string comparisons because the O*StringBuffer classes don't have the == and != comparison operators of their O*String counterparts. If string buffers are compared with == or != then the compiler does implicit conversions to their buffer pointer and compares these pointers, which is not the content-comparison that seems to be expected.