Commit c35d0304 authored by Albert Astals Cid's avatar Albert Astals Cid

Add private copy constructor and operator= to make sure we don't use the default ones

Since using them would results in bad things happening
parent f6741d92
......@@ -6,6 +6,20 @@
//
//========================================================================
//========================================================================
//
// Modified under the Poppler project - http://poppler.freedesktop.org
//
// All changes made under the Poppler project to this file are licensed
// under GPL version 2 or later
//
// Copyright (C) 2012 Albert Astals Cid <aacid@kde.org>
//
// To see a description of the changes please see the Changelog file that
// came with your tarball or type make ChangeLog if you are building from git
//
//========================================================================
#ifndef GHASH_H
#define GHASH_H
......@@ -45,6 +59,8 @@ public:
void killIter(GooHashIter **iter);
private:
GooHash(const GooHash &other);
GooHash& operator=(const GooHash &other);
void expand();
GooHashBucket *find(GooString *key, int *h);
......
......@@ -6,6 +6,20 @@
//
//========================================================================
//========================================================================
//
// Modified under the Poppler project - http://poppler.freedesktop.org
//
// All changes made under the Poppler project to this file are licensed
// under GPL version 2 or later
//
// Copyright (C) 2012 Albert Astals Cid <aacid@kde.org>
//
// To see a description of the changes please see the Changelog file that
// came with your tarball or type make ChangeLog if you are building from git
//
//========================================================================
#ifndef GLIST_H
#define GLIST_H
......@@ -79,6 +93,8 @@ public:
void setAllocIncr(int incA) { inc = incA; }
private:
GooList(const GooList &other);
GooList& operator=(const GooList &other);
void expand();
void shrink();
......
......@@ -6,7 +6,7 @@
//
// Copyright (C) 2009 Warren Toomey <wkt@tuhs.org>
// Copyright (C) 2009 Shen Liang <shenzhuxi@gmail.com>
// Copyright (C) 2009, 2011 Albert Astals Cid <aacid@kde.org>
// Copyright (C) 2009, 2011, 2012 Albert Astals Cid <aacid@kde.org>
// Copyright (C) 2009 Stefan Thomas <thomas@eload24.com>
// Copyright (C) 2010, 2011 Adrian Johnson <ajohnson@redneon.com>
//
......@@ -49,6 +49,9 @@ public:
bool close();
private:
PNGWriter(const PNGWriter &other);
PNGWriter& operator=(const PNGWriter &other);
Format format;
png_structp png_ptr;
png_infop info_ptr;
......
......@@ -5,7 +5,7 @@
// This file is licensed under the GPLv2 or later
//
// Copyright (C) 2010, 2012 William Bader <williambader@hotmail.com>
// Copyright (C) 2011 Albert Astals Cid <aacid@kde.org>
// Copyright (C) 2011, 2012 Albert Astals Cid <aacid@kde.org>
// Copyright (C) 2012 Adrian Johnson <ajohnson@redneon.com>
//
//========================================================================
......@@ -51,6 +51,9 @@ public:
bool close();
private:
TiffWriter(const TiffWriter &other);
TiffWriter& operator=(const TiffWriter &other);
TIFF *f; // LibTiff file context
int numRows; // number of rows in the image
int curRow; // number of rows written
......
......@@ -128,6 +128,8 @@ public:
GBool isDir() { return dir; }
private:
GDirEntry(const GDirEntry &other);
GDirEntry& operator=(const GDirEntry &other);
GooString *name; // dir/file name
GooString *fullPath;
......@@ -143,6 +145,8 @@ public:
void rewind();
private:
GDir(const GDir &other);
GDir& operator=(const GDir &other);
GooString *path; // directory path
GBool doStat; // call stat() for each entry?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment