Commit 9bd292a6 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Marked scalarProduct method as const

parent f7f7382d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -110,7 +110,7 @@ class tnlVector : public tnlArray< Real, Device, Index >

   //! Computes scalar dot product
   template< typename Vector >
   Real scalarProduct( const Vector& v );
   Real scalarProduct( const Vector& v ) const;

   //! Computes this = thisMultiplicator * this + multiplicator * v.
   template< typename Vector >
+1 −1
Original line number Diff line number Diff line
@@ -291,7 +291,7 @@ template< typename Real,
          typename Device,
          typename Index >
template< typename Vector >
Real tnlVector< Real, Device, Index > :: scalarProduct( const Vector& v )
Real tnlVector< Real, Device, Index > :: scalarProduct( const Vector& v ) const
{
   return tnlVectorOperations< Device > :: getScalarProduct( *this, v );
}