mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-22 15:31:05 +01:00
[varc] Fix compiler warning
src/OT/Var/VARC/VARC.cc:195:19: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
This commit is contained in:
1 parent
a00cf8c514
commit
2c87c319e3
1 file changed
+1
-1
@@ -192,7 +192,7 @@ VarComponent::get_path_at (hb_font_t *font,
|
||||
{
|
||||
unsigned axisIndicesIndex;
|
||||
READ_UINT32VAR (axisIndicesIndex);
|
||||
axisIndices = std::move((&VARC+VARC.axisIndicesList)[axisIndicesIndex]);
|
||||
axisIndices = (&VARC+VARC.axisIndicesList)[axisIndicesIndex];
|
||||
axisValuesInt.resize (axisIndices.length);
|
||||
const HBUINT8 *p = (const HBUINT8 *) record;
|
||||
TupleValues::decompile (p, axisValuesInt, (const HBUINT8 *) end);
|
||||
|
||||
Reference in new issue
Block a user