https://issues.apache.org/ooo/show_bug.cgi?id=123068
Bug ID: 123068
Issue Type: TASK
Summary: remove implicit rtl::O*String conversions to
char/utf-16 pointers
Product: General
Version: 4.0.0
Hardware: All
OS: All
Status: CONFIRMED
Severity: normal
Priority: P3
Component: code
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Blocks: 122208
The implicit conversions from string to pointers are dangerous. Checking the
AOO codebase for problems caused by it finds several problems:
- string concatenations that assume the Java-behavior that adding a value to a
string results in a string and the string-value to be concatenated. Instead the
the value does some pointer arithmetic with the string buffer address
- tests that assume that there is an OUString to bool operator that checks for
the emptiness of the string. This assumption is not only wrong but the implicit
OUString->pointer conversion and the fact that an empty rtl-string's buffer
doesn't point to NULL result in a wrong answer.
- unexpected template specializations being created
--
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.