Diffusion Krita 6cd18ba87f1a

Fix compilation on Windows in Debug mode

Authored by dkazakov on Feb 17 2019, 6:07 AM.

Description

Fix compilation on Windows in Debug mode

It looks like having both template definition and extern template
declaration confuses the compiler and makes it instantiate both
versions: the explicitly instantiated one and the inlined one. This
somehow breaks ODR rule, so the linker fails to understand that the code
is exported from another library, therefore causing a linking error.

The patch basically moves definitions of KisCallbackBasedPaintopProperty
and KisSliderBasedPaintOpProperty into a private translation units of
kritaimage, therefore avoiding confusion when linking kritaui.

Details

Committed
dkazakovFeb 17 2019, 6:07 AM
Parents
R37:c7c4ac598d63: Fix compilation in HDR mode
Branches
Unknown
Tags
Unknown