mirror of
https://github.com/qpdf/qpdf.git
synced 2024-12-22 19:08:59 +00:00
Use deleted copy/assignment (C++11)
This commit is contained in:
parent
5806e5c60c
commit
a6f1f829db
@ -63,8 +63,8 @@ class ClosedFileInputSource: public InputSource
|
||||
void stayOpen(bool);
|
||||
|
||||
private:
|
||||
ClosedFileInputSource(ClosedFileInputSource const&);
|
||||
ClosedFileInputSource& operator=(ClosedFileInputSource const&);
|
||||
ClosedFileInputSource(ClosedFileInputSource const&) = delete;
|
||||
ClosedFileInputSource& operator=(ClosedFileInputSource const&) = delete;
|
||||
|
||||
void before();
|
||||
void after();
|
||||
|
@ -51,8 +51,8 @@ class FileInputSource: public InputSource
|
||||
virtual void unreadCh(char ch);
|
||||
|
||||
private:
|
||||
FileInputSource(FileInputSource const&);
|
||||
FileInputSource& operator=(FileInputSource const&);
|
||||
FileInputSource(FileInputSource const&) = delete;
|
||||
FileInputSource& operator=(FileInputSource const&) = delete;
|
||||
|
||||
class Members
|
||||
{
|
||||
|
@ -78,8 +78,8 @@ class PointerHolder
|
||||
bool array;
|
||||
int refcount;
|
||||
private:
|
||||
Data(Data const&);
|
||||
Data& operator=(Data const&);
|
||||
Data(Data const&) = delete;
|
||||
Data& operator=(Data const&) = delete;
|
||||
};
|
||||
|
||||
public:
|
||||
|
@ -393,8 +393,8 @@ class QPDF
|
||||
std::string const& Perms);
|
||||
|
||||
private:
|
||||
EncryptionData(EncryptionData const&);
|
||||
EncryptionData& operator=(EncryptionData const&);
|
||||
EncryptionData(EncryptionData const&) = delete;
|
||||
EncryptionData& operator=(EncryptionData const&) = delete;
|
||||
|
||||
int V;
|
||||
int R;
|
||||
|
@ -183,9 +183,8 @@ class QPDFTokenizer
|
||||
void expectInlineImage(PointerHolder<InputSource> input);
|
||||
|
||||
private:
|
||||
// Do not implement copy or assignment
|
||||
QPDFTokenizer(QPDFTokenizer const&);
|
||||
QPDFTokenizer& operator=(QPDFTokenizer const&);
|
||||
QPDFTokenizer(QPDFTokenizer const&) = delete;
|
||||
QPDFTokenizer& operator=(QPDFTokenizer const&) = delete;
|
||||
|
||||
void resolveLiteral();
|
||||
bool isSpace(char);
|
||||
|
@ -39,8 +39,8 @@ class QPDF_DLL_CLASS RandomDataProvider
|
||||
}
|
||||
|
||||
private:
|
||||
RandomDataProvider(RandomDataProvider const&);
|
||||
RandomDataProvider& operator=(RandomDataProvider const&);
|
||||
RandomDataProvider(RandomDataProvider const&) = delete;
|
||||
RandomDataProvider& operator=(RandomDataProvider const&) = delete;
|
||||
};
|
||||
|
||||
#endif // RANDOMDATAPROVIDER_HH
|
||||
|
Loading…
Reference in New Issue
Block a user