--- 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 len (new CInt (0)); + boost::shared_ptr 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 newIp = ((*it).second)->clone (); + boost::shared_ptr 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 context (this->_createContext()); + boost::shared_ptr context (this->_createContext()); // Copy buf to buffer buffer.clear (); @@ -324,7 +324,7 @@ CStream::getDecodedStringRepresentation size_t CStream::getLength () const { - shared_ptr len = utils::getReferencedObject (dictionary.getProperty("Length")); + boost::shared_ptr 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 (new CNull ())); + return new BasicObserverContext (boost::shared_ptr (new CNull ())); } @@ -353,7 +353,7 @@ CStream::_createContext () const // // void -CStream::_objectChanged (shared_ptr context) +CStream::_objectChanged (boost::shared_ptr context) { // Do not notify anything if we are not in a valid pdf if (!hasValidPdf (this)) @@ -380,7 +380,7 @@ CStream::_objectChanged (shared_ptr newValue(this, EmptyDeallocator()); + boost::shared_ptr newValue(this, EmptyDeallocator()); // Fill it with correct values newValue->setPdf (this->getPdf()); newValue->setIndiRef (this->getIndiRef());