1
0
mirror of https://github.com/upx/upx synced 2025-09-28 19:06:07 +08:00

Consistently use const Class &' instead of Class const &'.

committer: mfx <mfx> 1042741665 +0000
This commit is contained in:
Markus F.X.J. Oberhumer 2003-01-16 18:27:45 +00:00
parent 7860e7a249
commit 8f25c72085
8 changed files with 15 additions and 15 deletions

View File

@ -47,7 +47,7 @@ Throwable::Throwable(const char *m, int e, bool w)
} }
Throwable::Throwable(Throwable const &other) Throwable::Throwable(const Throwable &other)
: super(other), msg(NULL), err(other.err), is_warning(other.is_warning) : super(other), msg(NULL), err(other.err), is_warning(other.is_warning)
{ {
if (other.msg) if (other.msg)

View File

@ -45,7 +45,7 @@ class Throwable : public std::exception
protected: protected:
Throwable(const char *m = 0, int e = 0, bool w = false); Throwable(const char *m = 0, int e = 0, bool w = false);
public: public:
Throwable(Throwable const &); Throwable(const Throwable &);
virtual ~Throwable() NOTHROW; virtual ~Throwable() NOTHROW;
const char *getMsg() const { return msg; } const char *getMsg() const { return msg; }
int getErrno() const { return err; } int getErrno() const { return err; }
@ -58,7 +58,7 @@ protected:
private: private:
// disable assignment // disable assignment
Throwable& operator= (Throwable const &); Throwable& operator= (const Throwable &);
// disable dynamic allocation // disable dynamic allocation
DISABLE_NEW_DELETE DISABLE_NEW_DELETE

View File

@ -219,8 +219,8 @@ protected:
private: private:
// disable copy and assignment // disable copy and assignment
LeFile(LeFile const &); // {} LeFile(const LeFile &); // {}
LeFile& operator= (LeFile const &); // { return *this; } LeFile& operator= (const LeFile &); // { return *this; }
}; };

View File

@ -64,8 +64,8 @@ private:
private: private:
// disable copy and assignment // disable copy and assignment
Linker(Linker const &); // {} Linker(const Linker &); // {}
Linker& operator= (Linker const &); // { return *this; } Linker& operator= (const Linker &); // { return *this; }
}; };
@ -83,8 +83,8 @@ protected:
private: private:
// disable copy and assignment // disable copy and assignment
BeLinker(BeLinker const &); // {} BeLinker(const BeLinker &); // {}
BeLinker& operator= (BeLinker const &); // { return *this; } BeLinker& operator= (const BeLinker &); // { return *this; }
}; };

View File

@ -63,8 +63,8 @@ private:
static unsigned global_alloc_counter; static unsigned global_alloc_counter;
// disable copy and assignment // disable copy and assignment
MemBuffer(MemBuffer const &); // {} MemBuffer(const MemBuffer &); // {}
MemBuffer& operator= (MemBuffer const &); // { return *this; } MemBuffer& operator= (const MemBuffer &); // { return *this; }
// disable dynamic allocation // disable dynamic allocation
DISABLE_NEW_DELETE DISABLE_NEW_DELETE

View File

@ -167,7 +167,7 @@ bool PackLinuxI386elf::canPack()
} }
void PackLinuxI386elf::packExtent( void PackLinuxI386elf::packExtent(
Extent const &x, const Extent &x,
unsigned &total_in, unsigned &total_in,
unsigned &total_out, unsigned &total_out,
Filter *ft, Filter *ft,

View File

@ -58,7 +58,7 @@ protected:
off_t offset; off_t offset;
off_t size; off_t size;
}; };
virtual void packExtent(Extent const &x, virtual void packExtent(const Extent &x,
unsigned &total_in, unsigned &total_out, Filter *, OutputFile *); unsigned &total_in, unsigned &total_out, Filter *, OutputFile *);
virtual void unpackExtent(unsigned wanted, OutputFile *fo, virtual void unpackExtent(unsigned wanted, OutputFile *fo,
unsigned &total_in, unsigned &total_out, unsigned &total_in, unsigned &total_out,

View File

@ -273,8 +273,8 @@ private:
private: private:
// disable copy and assignment // disable copy and assignment
Packer(Packer const &); // {} Packer(const Packer &); // {}
Packer& operator= (Packer const &); // { return *this; } Packer& operator= (const Packer &); // { return *this; }
}; };