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) : super(other), msg(NULL), err(other.err), is_warning(other.is_warning)
{ {
if (other.msg) if (other.msg)
+2 -2
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
+2 -2
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; }
}; };
+4 -4
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; }
}; };
+2 -2
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
+1 -1
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,
+1 -1
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,
+2 -2
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; }
}; };