Cleanup: Pass std::string as const reference from courgette/
Passing std::string by reference can prevent extra copying of object. BUG=367418 TEST= R=wfh@chromium.org Review URL: https://codereview.chromium.org/1353333002 Cr-Commit-Position: refs/heads/master@{#349951}
This commit is contained in:
@ -20,17 +20,16 @@
|
||||
|
||||
class EnsembleTest : public BaseTest {
|
||||
public:
|
||||
|
||||
void TestEnsemble(std::string src_bytes, std::string tgt_bytes) const;
|
||||
void TestEnsemble(const std::string& src_bytes,
|
||||
const std::string& tgt_bytes) const;
|
||||
|
||||
void PeEnsemble() const;
|
||||
void Pe64Ensemble() const;
|
||||
void Elf32Ensemble() const;
|
||||
};
|
||||
|
||||
void EnsembleTest::TestEnsemble(std::string src_bytes,
|
||||
std::string tgt_bytes) const {
|
||||
|
||||
void EnsembleTest::TestEnsemble(const std::string& src_bytes,
|
||||
const std::string& tgt_bytes) const {
|
||||
courgette::SourceStream source;
|
||||
courgette::SourceStream target;
|
||||
|
||||
|
Reference in New Issue
Block a user