diff options
author | lloyd <[email protected]> | 2008-10-12 05:48:02 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-10-12 05:48:02 +0000 |
commit | 8efcb908cca5d9aac801221a74c8c1e849066207 (patch) | |
tree | 3843452e733a19978ac3c6126081d7e8ac5c91f6 /src | |
parent | 9060e341de5c3b8c98c0250dac2211d15e1cd252 (diff) |
Return const references instead of copies in GFpModulus where possible
Diffstat (limited to 'src')
-rw-r--r-- | src/math/gfpmath/gfp_modulus.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/math/gfpmath/gfp_modulus.h b/src/math/gfpmath/gfp_modulus.h index 359f6cae1..55e0ff424 100644 --- a/src/math/gfpmath/gfp_modulus.h +++ b/src/math/gfpmath/gfp_modulus.h @@ -79,7 +79,7 @@ class BOTAN_DLL GFpModulus * Return the modulus of this GFpModulus. * @result the modulus of *this. */ - inline const BigInt get_p() const + inline const BigInt& get_p() const { return m_p; } @@ -90,7 +90,7 @@ class BOTAN_DLL GFpModulus * performed! * @result r */ - inline const BigInt get_r() const + inline const BigInt& get_r() const { return m_r; } @@ -101,7 +101,7 @@ class BOTAN_DLL GFpModulus * performed! * @result r^{-1} */ - inline const BigInt get_r_inv() const + inline const BigInt& get_r_inv() const { return m_r_inv; } @@ -112,7 +112,7 @@ class BOTAN_DLL GFpModulus * performed! * @result p' */ - inline const BigInt get_p_dash() const + inline const BigInt& get_p_dash() const { return m_p_dash; } |