Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


Hi,

static const sal_Char pProlog[] and static const sal_Char pSO52CompatProlog[] share about 90% of their content (2 out of 84 lines differ). I could split the prolog in three parts: part 1 and 3 identical for both variables and part 2 varies with m_pGraphics->getStrictSO52Compatibility()

This is where the prologs are used:
WritePS (pFile, m_pGraphics && m_pGraphics->getStrictSO52Compatibility() ? pSO52CompatProlog : pProlog);

Any arguments against that approach? It would need 3 instead of 1 call to WritePS...

Christina

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.