mirror of
https://git.freebsd.org/ports.git
synced 2025-06-01 19:06:28 -04:00
65 lines
2.4 KiB
C++
65 lines
2.4 KiB
C++
--- src/kernel/cstream.cc.orig 2010-04-27 18:42:09 UTC
|
|
+++ src/kernel/cstream.cc
|
|
@@ -123,7 +123,7 @@ void
|
|
CStream::createReqEntries ()
|
|
{
|
|
// Add one required entry in the stream dictionary (according to pdf specification)
|
|
- shared_ptr<CInt> len (new CInt (0));
|
|
+ boost::shared_ptr<CInt> len (new CInt (0));
|
|
assert (len);
|
|
dictionary.addProperty ("Length", *len);
|
|
}
|
|
@@ -152,7 +152,7 @@ CStream::doClone () const
|
|
CDict::Value::const_iterator it = dictionary.value.begin ();
|
|
for (; it != dictionary.value.end (); ++it)
|
|
{
|
|
- shared_ptr<IProperty> newIp = ((*it).second)->clone ();
|
|
+ boost::shared_ptr<IProperty> newIp = ((*it).second)->clone ();
|
|
assert (newIp);
|
|
CDict::Value::value_type item = make_pair ((*it).first, newIp);
|
|
clone_->dictionary.value.push_back (item);
|
|
@@ -204,7 +204,7 @@ CStream::setRawBuffer (const Buffer& buf
|
|
this->canChange();
|
|
|
|
// Create context
|
|
- shared_ptr<ObserverContext> context (this->_createContext());
|
|
+ boost::shared_ptr<ObserverContext> context (this->_createContext());
|
|
|
|
// Copy buf to buffer
|
|
buffer.clear ();
|
|
@@ -324,7 +324,7 @@ CStream::getDecodedStringRepresentation
|
|
size_t
|
|
CStream::getLength () const
|
|
{
|
|
- shared_ptr<IProperty> len = utils::getReferencedObject (dictionary.getProperty("Length"));
|
|
+ boost::shared_ptr<IProperty> len = utils::getReferencedObject (dictionary.getProperty("Length"));
|
|
if (isInt (len))
|
|
{
|
|
int length;
|
|
@@ -345,7 +345,7 @@ CStream::getLength () const
|
|
IProperty::ObserverContext*
|
|
CStream::_createContext () const
|
|
{
|
|
- return new BasicObserverContext (shared_ptr<IProperty> (new CNull ()));
|
|
+ return new BasicObserverContext (boost::shared_ptr<IProperty> (new CNull ()));
|
|
}
|
|
|
|
|
|
@@ -353,7 +353,7 @@ CStream::_createContext () const
|
|
//
|
|
//
|
|
void
|
|
-CStream::_objectChanged (shared_ptr<const ObserverContext> context)
|
|
+CStream::_objectChanged (boost::shared_ptr<const ObserverContext> context)
|
|
{
|
|
// Do not notify anything if we are not in a valid pdf
|
|
if (!hasValidPdf (this))
|
|
@@ -380,7 +380,7 @@ CStream::_objectChanged (shared_ptr<cons
|
|
// doesn't clone but rather wrap this with shared pointer
|
|
// and empty deallocator to prevent from this instance
|
|
// deallocation
|
|
- shared_ptr<IProperty> newValue(this, EmptyDeallocator<IProperty>());
|
|
+ boost::shared_ptr<IProperty> newValue(this, EmptyDeallocator<IProperty>());
|
|
// Fill it with correct values
|
|
newValue->setPdf (this->getPdf());
|
|
newValue->setIndiRef (this->getIndiRef());
|