diff options
author | tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-06-01 19:50:02 +0000 |
---|---|---|
committer | tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-06-01 19:50:02 +0000 |
commit | 0bdbed380218af581595a81aca728841aef27c42 (patch) | |
tree | b5bff826e2b7180c5e97621943884eb74bffdb7f /include/gpu/GrSamplerState.h | |
parent | 04640299dc0d71752295a630d58f6160642f3c8e (diff) |
Fix GrSamplerState::operator=() to take a reference rather than a copy.
Visual review by bsalomon@.
git-svn-id: http://skia.googlecode.com/svn/trunk@4128 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/gpu/GrSamplerState.h')
-rw-r--r-- | include/gpu/GrSamplerState.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/gpu/GrSamplerState.h b/include/gpu/GrSamplerState.h index 3cafa457fa..b1c4852d7f 100644 --- a/include/gpu/GrSamplerState.h +++ b/include/gpu/GrSamplerState.h @@ -115,7 +115,7 @@ public: } bool operator !=(const GrSamplerState& s) const { return !(*this == s); } - GrSamplerState& operator =(const GrSamplerState s) { + GrSamplerState& operator =(const GrSamplerState& s) { // memcpy() breaks refcounting fWrapX = s.fWrapX; fWrapY = s.fWrapY; |