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:
parent
7860e7a249
commit
8f25c72085
|
@ -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)
|
||||
{
|
||||
if (other.msg)
|
||||
|
|
|
@ -45,7 +45,7 @@ class Throwable : public std::exception
|
|||
protected:
|
||||
Throwable(const char *m = 0, int e = 0, bool w = false);
|
||||
public:
|
||||
Throwable(Throwable const &);
|
||||
Throwable(const Throwable &);
|
||||
virtual ~Throwable() NOTHROW;
|
||||
const char *getMsg() const { return msg; }
|
||||
int getErrno() const { return err; }
|
||||
|
@ -58,7 +58,7 @@ protected:
|
|||
|
||||
private:
|
||||
// disable assignment
|
||||
Throwable& operator= (Throwable const &);
|
||||
Throwable& operator= (const Throwable &);
|
||||
// disable dynamic allocation
|
||||
DISABLE_NEW_DELETE
|
||||
|
||||
|
|
|
@ -219,8 +219,8 @@ protected:
|
|||
|
||||
private:
|
||||
// disable copy and assignment
|
||||
LeFile(LeFile const &); // {}
|
||||
LeFile& operator= (LeFile const &); // { return *this; }
|
||||
LeFile(const LeFile &); // {}
|
||||
LeFile& operator= (const LeFile &); // { return *this; }
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -64,8 +64,8 @@ private:
|
|||
|
||||
private:
|
||||
// disable copy and assignment
|
||||
Linker(Linker const &); // {}
|
||||
Linker& operator= (Linker const &); // { return *this; }
|
||||
Linker(const Linker &); // {}
|
||||
Linker& operator= (const Linker &); // { return *this; }
|
||||
};
|
||||
|
||||
|
||||
|
@ -83,8 +83,8 @@ protected:
|
|||
|
||||
private:
|
||||
// disable copy and assignment
|
||||
BeLinker(BeLinker const &); // {}
|
||||
BeLinker& operator= (BeLinker const &); // { return *this; }
|
||||
BeLinker(const BeLinker &); // {}
|
||||
BeLinker& operator= (const BeLinker &); // { return *this; }
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -63,8 +63,8 @@ private:
|
|||
static unsigned global_alloc_counter;
|
||||
|
||||
// disable copy and assignment
|
||||
MemBuffer(MemBuffer const &); // {}
|
||||
MemBuffer& operator= (MemBuffer const &); // { return *this; }
|
||||
MemBuffer(const MemBuffer &); // {}
|
||||
MemBuffer& operator= (const MemBuffer &); // { return *this; }
|
||||
|
||||
// disable dynamic allocation
|
||||
DISABLE_NEW_DELETE
|
||||
|
|
|
@ -167,7 +167,7 @@ bool PackLinuxI386elf::canPack()
|
|||
}
|
||||
|
||||
void PackLinuxI386elf::packExtent(
|
||||
Extent const &x,
|
||||
const Extent &x,
|
||||
unsigned &total_in,
|
||||
unsigned &total_out,
|
||||
Filter *ft,
|
||||
|
|
|
@ -58,7 +58,7 @@ protected:
|
|||
off_t offset;
|
||||
off_t size;
|
||||
};
|
||||
virtual void packExtent(Extent const &x,
|
||||
virtual void packExtent(const Extent &x,
|
||||
unsigned &total_in, unsigned &total_out, Filter *, OutputFile *);
|
||||
virtual void unpackExtent(unsigned wanted, OutputFile *fo,
|
||||
unsigned &total_in, unsigned &total_out,
|
||||
|
|
|
@ -273,8 +273,8 @@ private:
|
|||
|
||||
private:
|
||||
// disable copy and assignment
|
||||
Packer(Packer const &); // {}
|
||||
Packer& operator= (Packer const &); // { return *this; }
|
||||
Packer(const Packer &); // {}
|
||||
Packer& operator= (const Packer &); // { return *this; }
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user