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
+1 -1
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)
{
if (other.msg)
+2 -2
View File
@@ -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
+2 -2
View File
@@ -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; }
};
+4 -4
View File
@@ -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; }
};
+2 -2
View File
@@ -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
+1 -1
View File
@@ -167,7 +167,7 @@ bool PackLinuxI386elf::canPack()
}
void PackLinuxI386elf::packExtent(
Extent const &x,
const Extent &x,
unsigned &total_in,
unsigned &total_out,
Filter *ft,
+1 -1
View File
@@ -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,
+2 -2
View File
@@ -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; }
};