Hey,
2013/1/28 Marcos Souza <marcos.souza.org@gmail.com>:
Hi guys!
While I was looking at some STRINGPARAM macros in calc, I saw the function
createFileURL is implemented several times:
http://opengrok.libreoffice.org/search?q=void+createFileURL&project=core&defs=&refs=&path=sc&hist=
And they are all equal. In UnoApiTest exists a createFileURL too, and this
is used just in one place in all LO code...
Yes they are all copied from the original implementation.
Can I get ride of all this and make just one function and call it in every
place?
Sure go on with that.
If yes, how can I proceed? Where can I create this function?
Either in the test module in one of the common base classes or inside
a header file inside sc/qa/
I'd prefer the solution inside test as this would simplify the code a
bit for the future.
Regards,
Markus
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.