diff options
author | Albert Astals Cid <aacid@kde.org> | 2018-11-07 15:34:20 +0100 |
---|---|---|
committer | Albert Astals Cid <tsdgeos@yahoo.es> | 2018-11-09 00:21:13 +0000 |
commit | 1ac74b477748c86263c737c6f1b3ac71fb4808bc (patch) | |
tree | 5bf1737fe30d3ed9d68707b0142671a8b98b8587 /fofi | |
parent | e69cd723679c4732d07dec13c60af800ba9c0e0a (diff) |
Pass small and trivially-copyable type by value
Diffstat (limited to 'fofi')
-rw-r--r-- | fofi/FoFiTrueType.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fofi/FoFiTrueType.cc b/fofi/FoFiTrueType.cc index 612adc3c..b3bcccea 100644 --- a/fofi/FoFiTrueType.cc +++ b/fofi/FoFiTrueType.cc @@ -142,7 +142,7 @@ struct TrueTypeLoca { #define vertTag 0x76657274 struct cmpTrueTypeLocaOffsetFunctor { - bool operator()(const TrueTypeLoca &loca1, const TrueTypeLoca &loca2) { + bool operator()(const TrueTypeLoca loca1, const TrueTypeLoca loca2) { if (loca1.origOffset == loca2.origOffset) { return loca1.idx < loca2.idx; } @@ -151,7 +151,7 @@ struct cmpTrueTypeLocaOffsetFunctor { }; struct cmpTrueTypeLocaIdxFunctor { - bool operator()(const TrueTypeLoca &loca1, const TrueTypeLoca &loca2) { + bool operator()(const TrueTypeLoca loca1, const TrueTypeLoca loca2) { return loca1.idx < loca2.idx; } }; |