mirror of
https://github.com/qpdf/qpdf.git
synced 2024-09-28 04:59:05 +00:00
Remove redundant friend class statements
This commit is contained in:
parent
ff42ea4e6c
commit
008364a9a4
@ -886,7 +886,6 @@ class QPDF
|
|||||||
qpdf->resolve(og);
|
qpdf->resolve(og);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
friend class Resolver;
|
|
||||||
|
|
||||||
// StreamCopier class is restricted to QPDFObjectHandle so it can
|
// StreamCopier class is restricted to QPDFObjectHandle so it can
|
||||||
// copy stream data.
|
// copy stream data.
|
||||||
@ -904,7 +903,6 @@ class QPDF
|
|||||||
qpdf->copyStreamData(dest, src);
|
qpdf->copyStreamData(dest, src);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
friend class Resolver;
|
|
||||||
|
|
||||||
// The ParseGuard class allows QPDFObjectHandle to detect
|
// The ParseGuard class allows QPDFObjectHandle to detect
|
||||||
// re-entrant parsing.
|
// re-entrant parsing.
|
||||||
@ -928,7 +926,6 @@ class QPDF
|
|||||||
}
|
}
|
||||||
QPDF* qpdf;
|
QPDF* qpdf;
|
||||||
};
|
};
|
||||||
friend class ParseGuard;
|
|
||||||
|
|
||||||
// Pipe class is restricted to QPDF_Stream
|
// Pipe class is restricted to QPDF_Stream
|
||||||
class Pipe
|
class Pipe
|
||||||
@ -957,7 +954,6 @@ class QPDF
|
|||||||
will_retry);
|
will_retry);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
friend class Pipe;
|
|
||||||
|
|
||||||
// For testing only -- do not add to DLL
|
// For testing only -- do not add to DLL
|
||||||
static bool test_json_validators();
|
static bool test_json_validators();
|
||||||
@ -1106,7 +1102,6 @@ class QPDF
|
|||||||
QPDF* qpdf;
|
QPDF* qpdf;
|
||||||
std::set<QPDFObjGen>::const_iterator iter;
|
std::set<QPDFObjGen>::const_iterator iter;
|
||||||
};
|
};
|
||||||
friend class ResolveRecorder;
|
|
||||||
|
|
||||||
class JSONReactor: public JSON::Reactor
|
class JSONReactor: public JSON::Reactor
|
||||||
{
|
{
|
||||||
@ -1173,7 +1168,6 @@ class QPDF
|
|||||||
std::vector<QPDFObjectHandle> object_stack;
|
std::vector<QPDFObjectHandle> object_stack;
|
||||||
std::set<QPDFObjGen> reserved;
|
std::set<QPDFObjGen> reserved;
|
||||||
};
|
};
|
||||||
friend class JSONReactor;
|
|
||||||
|
|
||||||
void parse(char const* password);
|
void parse(char const* password);
|
||||||
void inParse(bool);
|
void inParse(bool);
|
||||||
|
@ -382,7 +382,6 @@ class QPDFJob
|
|||||||
}
|
}
|
||||||
QPDFJob& o;
|
QPDFJob& o;
|
||||||
};
|
};
|
||||||
friend class Config;
|
|
||||||
|
|
||||||
// Return a top-level configuration item. See CONFIGURATION above
|
// Return a top-level configuration item. See CONFIGURATION above
|
||||||
// for details. If an invalid configuration is created (such as
|
// for details. If an invalid configuration is created (such as
|
||||||
|
@ -1504,7 +1504,6 @@ class QPDFObjectHandle
|
|||||||
return QPDFObjectHandle(obj);
|
return QPDFObjectHandle(obj);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
friend class Factory;
|
|
||||||
|
|
||||||
// Accessor for raw underlying object -- only QPDF is allowed to
|
// Accessor for raw underlying object -- only QPDF is allowed to
|
||||||
// call this.
|
// call this.
|
||||||
@ -1533,7 +1532,6 @@ class QPDFObjectHandle
|
|||||||
return oh.asStream();
|
return oh.asStream();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
friend class ObjAccessor;
|
|
||||||
|
|
||||||
// Provide access to specific classes for recursive
|
// Provide access to specific classes for recursive
|
||||||
// disconnected().
|
// disconnected().
|
||||||
@ -1550,7 +1548,6 @@ class QPDFObjectHandle
|
|||||||
o.disconnect();
|
o.disconnect();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
friend class Resetter;
|
|
||||||
|
|
||||||
// Convenience routine: Throws if the assumption is violated. Your
|
// Convenience routine: Throws if the assumption is violated. Your
|
||||||
// code will be better if you call one of the isType methods and
|
// code will be better if you call one of the isType methods and
|
||||||
|
@ -76,7 +76,6 @@ class QPDFOutlineDocumentHelper: public QPDFDocumentHelper
|
|||||||
return dh.checkSeen(og);
|
return dh.checkSeen(og);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
friend class Accessor;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool checkSeen(QPDFObjGen const& og);
|
bool checkSeen(QPDFObjGen const& og);
|
||||||
|
@ -93,7 +93,6 @@ class QPDFOutlineObjectHelper: public QPDFObjectHelper
|
|||||||
return QPDFOutlineObjectHelper(oh, dh, depth);
|
return QPDFOutlineObjectHelper(oh, dh, depth);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
friend class Accessor;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QPDF_DLL
|
QPDF_DLL
|
||||||
|
@ -550,7 +550,6 @@ class QPDFWriter
|
|||||||
std::shared_ptr<Buffer>* bp;
|
std::shared_ptr<Buffer>* bp;
|
||||||
std::string stack_id;
|
std::string stack_id;
|
||||||
};
|
};
|
||||||
friend class PipelinePopper;
|
|
||||||
|
|
||||||
unsigned int bytesNeeded(long long n);
|
unsigned int bytesNeeded(long long n);
|
||||||
void writeBinary(unsigned long long val, unsigned int bytes);
|
void writeBinary(unsigned long long val, unsigned int bytes);
|
||||||
|
Loading…
Reference in New Issue
Block a user