mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +00:00
Use const-references in lots of places (preformance-unnecessary-value-param)
This commit is contained in:
parent
92afe64525
commit
5a237d3a3f
27 changed files with 89 additions and 89 deletions
|
@ -112,7 +112,7 @@ public:
|
|||
* This methods corresponds directly to the internal BiF defined in
|
||||
* logging.bif, which just forwards here.
|
||||
*/
|
||||
bool RemoveFilter(EnumVal* id, string name);
|
||||
bool RemoveFilter(EnumVal* id, const string& name);
|
||||
|
||||
/**
|
||||
* Write a record to a log stream.
|
||||
|
@ -165,7 +165,7 @@ public:
|
|||
* @param vals An array of log values to write, of size num_fields.
|
||||
* The method takes ownership of the array.
|
||||
*/
|
||||
bool WriteFromRemote(EnumVal* stream, EnumVal* writer, string path,
|
||||
bool WriteFromRemote(EnumVal* stream, EnumVal* writer, const string& path,
|
||||
int num_fields, threading::Value** vals);
|
||||
|
||||
/**
|
||||
|
@ -256,7 +256,7 @@ private:
|
|||
struct WriterInfo;
|
||||
|
||||
bool TraverseRecord(Stream* stream, Filter* filter, RecordType* rt,
|
||||
TableVal* include, TableVal* exclude, string path, list<int> indices);
|
||||
TableVal* include, TableVal* exclude, const string& path, const list<int>& indices);
|
||||
|
||||
threading::Value** RecordToFilterVals(Stream* stream, Filter* filter,
|
||||
RecordVal* columns);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue