diff options
author | Tor Lillqvist <tml@collabora.com> | 2019-10-03 16:48:04 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2019-10-03 17:35:37 +0200 |
commit | 6ad127ead70cc0942c9876556dda7f525d7d01a0 (patch) | |
tree | 00c216e008a6bb3765aed0a88e79bc749b71f006 /compilerplugins | |
parent | 9db8406b839df8a892d025e054e818def4a60edc (diff) |
tdf#127766: Avoid ODR violation for class/struct FieldEntry
We had a class FieldEntry in registry/source/reflwrit.cxx and a struct
FieldEntry in sd/source/filter/eppt/text.hxx. That causes problems
when code from both is linked into one binary, as in the iOS and
Android apps. The wrong FieldEntry destructor got called from the code
in sd which of course lead to a crash.
Fix by putting the one in registry into an unnamed namespace. (I put a
large chunk of the source file in it while at it.)
Change-Id: I1b32075f7aba256129b36ceb38eba605c882b9ff
Reviewed-on: https://gerrit.libreoffice.org/80141
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'compilerplugins')
0 files changed, 0 insertions, 0 deletions