From f7ac0966965781eda14e468bfba672c9f741490f Mon Sep 17 00:00:00 2001 From: Lev Nachmanson Date: Sun, 15 Jul 2018 15:29:13 -0700 Subject: [PATCH] avoid a vector copy Signed-off-by: Lev Nachmanson --- src/util/lp/lar_solver.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/lp/lar_solver.h b/src/util/lp/lar_solver.h index 72705dfb3..3735fbb9f 100644 --- a/src/util/lp/lar_solver.h +++ b/src/util/lp/lar_solver.h @@ -112,7 +112,7 @@ private: public : unsigned terms_start_index() const { return m_terms_start_index; } - const vector terms() const { return m_terms; } + const vector & terms() const { return m_terms; } const vector& constraints() const { return m_constraints; }