403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.168
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/editors/pdfedit/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/editors/pdfedit/files/patch-src-kernel-cstream.cc
--- 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());

Youez - 2016 - github.com/yon3zu
LinuXploit