ports/editors/pdfedit/files/patch-src-kernel-textoutputengines.cc
Hiroki Sato cbef0b0505 - Resurrect editors/pdfedit. Fix to compile the library part only
because of QT3 deprecation long time ago.
- Take maintainership.
2016-06-11 20:53:25 +00:00

29 lines
1.3 KiB
C++

--- src/kernel/textoutputengines.cc.orig 2016-06-12 03:44:13.431031000 +0900
+++ src/kernel/textoutputengines.cc 2016-06-12 03:44:31.197856000 +0900
@@ -232,13 +232,13 @@
PdfOperator::Operands ops;
op->getParameters (ops);
assert (1 == ops.size());
- shared_ptr<CArray> array = IProperty::getSmartCObjectPtr<CArray> (ops.front());
+ boost::shared_ptr<CArray> array = IProperty::getSmartCObjectPtr<CArray> (ops.front());
//
// Loop through TJ operands either strings or nums
//
for (size_t i = 0; i < array->getPropertyCount(); ++i)
{
- shared_ptr<IProperty> ip = array->getProperty (i);
+ boost::shared_ptr<IProperty> ip = array->getProperty (i);
if (isNumber (ip))
{
int wMode = s->getFont()->getWMode();
@@ -253,8 +253,8 @@
// Create Tj with text and add it to output
string txt = getStringFromIProperty (ip);
PdfOperator::Operands opers;
- opers.push_back (shared_ptr<CString> (new CString (txt)));
- shared_ptr<PdfOperator> newop = createOperator ("Tj", opers);
+ opers.push_back (boost::shared_ptr<CString> (new CString (txt)));
+ boost::shared_ptr<PdfOperator> newop = createOperator ("Tj", opers);
// Set bbox
BBox bbox;
StateUpdater::printTextUpdate (s.get(), txt, &bbox);