Commit 2512697b authored by Andrea Valassi's avatar Andrea Valassi
Browse files

Change std::vector to std::vector&. Thanks to Martin for the suggestion!


git-svn-id: file:///git/lcgcool.svndb/cool/trunk@14116 4525493e-7705-40b1-a816-d608a930855b
parent fb46b122
// $Id: CompositeSelection.h,v 1.2 2008-07-30 15:20:50 avalassi Exp $ // $Id: CompositeSelection.h,v 1.3 2008-07-31 11:20:41 avalassi Exp $
#ifndef COOLKERNEL_COMPOSITESELECTION_H #ifndef COOLKERNEL_COMPOSITESELECTION_H
#define COOLKERNEL_COMPOSITESELECTION_H 1 #define COOLKERNEL_COMPOSITESELECTION_H 1
#ifdef COOL260 #ifdef COOL260
...@@ -47,7 +47,7 @@ namespace cool ...@@ -47,7 +47,7 @@ namespace cool
/// The vector must contain at least two selections. /// The vector must contain at least two selections.
/// Each input selection is cloned (the clone is owned by this instance). /// Each input selection is cloned (the clone is owned by this instance).
CompositeSelection( const Connective conn, CompositeSelection( const Connective conn,
const std::vector<const IRecordSelection*> selVec ); const std::vector<const IRecordSelection*>& selVec );
/// Connect another selection. /// Connect another selection.
/// The input selection is cloned (the clone is owned by this instance). /// The input selection is cloned (the clone is owned by this instance).
......
// $Id: CompositeSelection.cpp,v 1.3 2008-07-30 15:20:51 avalassi Exp $ // $Id: CompositeSelection.cpp,v 1.4 2008-07-31 11:20:41 avalassi Exp $
#ifdef COOL260 #ifdef COOL260
// Include files // Include files
...@@ -51,7 +51,7 @@ CompositeSelection::CompositeSelection( const IRecordSelection* sel1, ...@@ -51,7 +51,7 @@ CompositeSelection::CompositeSelection( const IRecordSelection* sel1,
CompositeSelection::CompositeSelection CompositeSelection::CompositeSelection
( const Connective conn, ( const Connective conn,
const std::vector<const IRecordSelection*> selVec ) const std::vector<const IRecordSelection*>& selVec )
: m_conn( conn ) : m_conn( conn )
, m_selVec() , m_selVec()
{ {
......
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