Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Unified Diff: include/core/SkRefCnt.h

Issue 1933393002: Move SkTypeface to sk_sp. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Make vc++ happy. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: include/core/SkRefCnt.h
diff --git a/include/core/SkRefCnt.h b/include/core/SkRefCnt.h
index c45ed6bbf06f0d261f6efde6b696da538166b0dd..d3d05012dc1e286b76c03d75be145c7e65b38bf0 100644
--- a/include/core/SkRefCnt.h
+++ b/include/core/SkRefCnt.h
@@ -330,7 +330,7 @@ public:
return *this;
}
- T& operator*() const {
+ skstd::add_lvalue_reference_t<T> operator*() const {
SkASSERT(this->get() != nullptr);
return *this->get();
}

Powered by Google App Engine
This is Rietveld 408576698