diff options
author | Steve Reinhardt <stever@eecs.umich.edu> | 2004-02-04 11:16:30 -0800 |
---|---|---|
committer | Steve Reinhardt <stever@eecs.umich.edu> | 2004-02-04 11:16:30 -0800 |
commit | 98948b2e572d10faf1ac91f977837cf2e8a903c3 (patch) | |
tree | 35f13103c6dc13ca41e41d753e1bf570c3a672f9 /sim | |
parent | 368e6e3e570430b207b0194290242a2f98e565ca (diff) | |
download | gem5-98948b2e572d10faf1ac91f977837cf2e8a903c3.tar.xz |
More reformatting of reference parameter declarations.
The last change only caught the ones with types that
started with capitals. This pass catches the rest
(mostly STL and uint*_t types).
base/cprintf_formats.hh:
cpu/simple_cpu/simple_cpu.cc:
sim/serialize.cc:
sim/serialize.hh:
Change "foo_t& foo" to "foo_t &foo".
--HG--
extra : convert_revision : fc7f7425db2aef33e490f952b5ce74c8c36d0d41
Diffstat (limited to 'sim')
-rw-r--r-- | sim/serialize.cc | 4 | ||||
-rw-r--r-- | sim/serialize.hh | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sim/serialize.cc b/sim/serialize.cc index 180cc38a0..ba5a99afd 100644 --- a/sim/serialize.cc +++ b/sim/serialize.cc @@ -187,7 +187,7 @@ class Globals : public Serializable { public: string name() const; - void serialize(ostream& os); + void serialize(ostream &os); void unserialize(Checkpoint *cp); }; @@ -201,7 +201,7 @@ Globals::name() const } void -Globals::serialize(ostream& os) +Globals::serialize(ostream &os) { nameOut(os); SERIALIZE_SCALAR(curTick); diff --git a/sim/serialize.hh b/sim/serialize.hh index 9ab2fa833..e561604bf 100644 --- a/sim/serialize.hh +++ b/sim/serialize.hh @@ -103,8 +103,8 @@ objParamIn(Checkpoint *cp, const std::string §ion, class Serializable { protected: - void nameOut(std::ostream& os); - void nameOut(std::ostream& os, const std::string &_name); + void nameOut(std::ostream &os); + void nameOut(std::ostream &os, const std::string &_name); public: Serializable() {} @@ -113,7 +113,7 @@ class Serializable // manditory virtual function, so objects must provide names virtual std::string name() const = 0; - virtual void serialize(std::ostream& os) {} + virtual void serialize(std::ostream &os) {} virtual void unserialize(Checkpoint *cp, const std::string §ion) {} static Serializable *create(Checkpoint *cp, |