Commit 43bda735 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

use reference type 'const CdoStreamID &' to prevent copying

parent 7b303a8d
Pipeline #4430 passed with stages
in 14 minutes and 57 seconds
......@@ -19,7 +19,7 @@
#include "config.h"
#endif
#ifdef HAVE_PTHREAD_H
#ifdef HAVE_PTHREAD_H
#include <pthread.h>
#endif
......@@ -463,7 +463,7 @@ Process::printProcessedValues()
bool
Process::hasOutStream(const CdoStreamID p_streamID)
{
for (const CdoStreamID streamID : outputStreams)
for (const CdoStreamID &streamID : outputStreams)
{
if (streamID == p_streamID) return true;
}
......@@ -473,7 +473,7 @@ Process::hasOutStream(const CdoStreamID p_streamID)
bool
Process::hasInStream(const CdoStreamID p_streamID)
{
for (const CdoStreamID streamID : inputStreams)
for (const CdoStreamID &streamID : inputStreams)
{
if (streamID == p_streamID) return true;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment