cid#1616498 COPY_INSTEAD_OF_MOVE
and cid#1616499 COPY_INSTEAD_OF_MOVE Change-Id: I21b089cab036902a7ba5b725a6eae0f1212f2b31 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171923 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
@@ -318,7 +318,7 @@ void statusIndicatorFinish()
|
||||
pStatusIndicatorCallback(pStatusIndicatorCallbackData, statusIndicatorCallbackType::Finish, 0, nullptr);
|
||||
}
|
||||
|
||||
void setAnyInputCallback(std::function<bool(void*)> pAnyInputCallback, void* pData)
|
||||
void setAnyInputCallback(const std::function<bool(void*)>& pAnyInputCallback, void* pData)
|
||||
{
|
||||
g_pAnyInputCallback = pAnyInputCallback;
|
||||
g_pAnyInputCallbackData = pData;
|
||||
|
@@ -381,9 +381,8 @@ TextLayouterDevice::getSalLayout(const OUString& rText, sal_uInt32 nIndex, sal_u
|
||||
|
||||
void TextLayouterDevice::createEmphasisMarks(
|
||||
SalLayout& rSalLayout, TextEmphasisMark aTextEmphasisMark, bool bAbove,
|
||||
std::function<void(const basegfx::B2DPoint&, const basegfx::B2DPolyPolygon&, bool,
|
||||
const tools::Rectangle&, const tools::Rectangle&)>
|
||||
aCallback) const
|
||||
const std::function<void(const basegfx::B2DPoint&, const basegfx::B2DPolyPolygon&, bool,
|
||||
const tools::Rectangle&, const tools::Rectangle&)>& rCallback) const
|
||||
{
|
||||
FontEmphasisMark nEmphasisMark(FontEmphasisMark::NONE);
|
||||
double fEmphasisHeight(getTextHeight() * (250.0 / 1000.0));
|
||||
@@ -412,7 +411,7 @@ void TextLayouterDevice::createEmphasisMarks(
|
||||
nEmphasisMark |= FontEmphasisMark::PosBelow;
|
||||
|
||||
mrDevice.createEmphasisMarks(nEmphasisMark, static_cast<tools::Long>(fEmphasisHeight),
|
||||
rSalLayout, aCallback);
|
||||
rSalLayout, rCallback);
|
||||
}
|
||||
|
||||
// helper methods for vcl font handling
|
||||
|
@@ -134,7 +134,7 @@ COMPHELPER_DLLPUBLIC void statusIndicatorFinish();
|
||||
|
||||
COMPHELPER_DLLPUBLIC void setBlockedCommandList(const char* blockedCommandList);
|
||||
|
||||
COMPHELPER_DLLPUBLIC void setAnyInputCallback(std::function<bool(void*)> pAnyInputCallback,
|
||||
COMPHELPER_DLLPUBLIC void setAnyInputCallback(const std::function<bool(void*)>& pAnyInputCallback,
|
||||
void* pData);
|
||||
COMPHELPER_DLLPUBLIC bool anyInput();
|
||||
}
|
||||
|
@@ -125,11 +125,11 @@ public:
|
||||
const basegfx::B2DPoint& rStartPoint,
|
||||
const KernArray& rDXArray,
|
||||
std::span<const sal_Bool> pKashidaAry) const;
|
||||
void
|
||||
createEmphasisMarks(SalLayout& rSalLayout, TextEmphasisMark aTextEmphasisMark, bool bAbove,
|
||||
std::function<void(const basegfx::B2DPoint&, const basegfx::B2DPolyPolygon&,
|
||||
bool, const tools::Rectangle&, const tools::Rectangle&)>
|
||||
aCallback) const;
|
||||
void createEmphasisMarks(
|
||||
SalLayout& rSalLayout, TextEmphasisMark aTextEmphasisMark, bool bAbove,
|
||||
const std::function<void(const basegfx::B2DPoint&, const basegfx::B2DPolyPolygon&, bool,
|
||||
const tools::Rectangle&, const tools::Rectangle&)>& rCallback)
|
||||
const;
|
||||
};
|
||||
|
||||
// helper methods for vcl font handling
|
||||
|
@@ -1237,8 +1237,8 @@ public:
|
||||
FontEmphasisMark nFontEmphasisMark,
|
||||
tools::Long nEmphasisHeight,
|
||||
SalLayout& rSalLayout,
|
||||
std::function<void(const basegfx::B2DPoint&, const basegfx::B2DPolyPolygon&,
|
||||
bool, const tools::Rectangle&, const tools::Rectangle&)> aCallback) const;
|
||||
const std::function<void(const basegfx::B2DPoint&, const basegfx::B2DPolyPolygon&,
|
||||
bool, const tools::Rectangle&, const tools::Rectangle&)>& rCallback) const;
|
||||
|
||||
// tells whether this output device is RTL in an LTR UI or LTR in a RTL UI
|
||||
SAL_DLLPRIVATE bool ImplIsAntiparallel() const ;
|
||||
|
@@ -25,9 +25,8 @@
|
||||
|
||||
void OutputDevice::createEmphasisMarks(
|
||||
FontEmphasisMark nEmphasisMark, tools::Long nEmphasisHeight, SalLayout& rSalLayout,
|
||||
std::function<void(const basegfx::B2DPoint&, const basegfx::B2DPolyPolygon&, bool,
|
||||
const tools::Rectangle&, const tools::Rectangle&)>
|
||||
aCallback) const
|
||||
const std::function<void(const basegfx::B2DPoint&, const basegfx::B2DPolyPolygon&, bool,
|
||||
const tools::Rectangle&, const tools::Rectangle&)>& rCallback) const
|
||||
{
|
||||
// tooling method to create geometry data for EmphasisMarks. It does the same
|
||||
// as OutputDevice::ImplDrawEmphasisMarks, but feeds the data into the
|
||||
@@ -91,7 +90,7 @@ void OutputDevice::createEmphasisMarks(
|
||||
aOutPoint.adjustY(aAdjPoint.Y() - nEmphasisHeight2);
|
||||
|
||||
// use callback to propagate the data to where it was requested from
|
||||
aCallback(aOutPoint, aShape, aEmphasisMark.IsShapePolyLine(), aEmphasisMark.GetRect1(),
|
||||
rCallback(aOutPoint, aShape, aEmphasisMark.IsShapePolyLine(), aEmphasisMark.GetRect1(),
|
||||
aEmphasisMark.GetRect2());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user