Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2015-07-18 18:31:33 +0300
committerKacper Michajłow <kasper93@gmail.com>2015-07-20 00:36:47 +0300
commitcbc9002fb0bacb69fb3c0eaa7b30ba320a12aced (patch)
treecb722a35c81d790d1e09b4d16dbfff122007db3b /src/Subtitles/RTS.cpp
parent39cb7e7f76380d2dcb3c88ed5c715a4a93f2a810 (diff)
Pass STSStyle as const reference to fix warning C4239.
It is funny that MSVC even allow to pass r-value as non-const reference.
Diffstat (limited to 'src/Subtitles/RTS.cpp')
-rw-r--r--src/Subtitles/RTS.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Subtitles/RTS.cpp b/src/Subtitles/RTS.cpp
index c4fda9699..8796bc80f 100644
--- a/src/Subtitles/RTS.cpp
+++ b/src/Subtitles/RTS.cpp
@@ -40,7 +40,7 @@ static long revcolor(long c)
// CMyFont
-CMyFont::CMyFont(STSStyle& style)
+CMyFont::CMyFont(const STSStyle& style)
{
LOGFONT lf;
ZeroMemory(&lf, sizeof(lf));
@@ -66,7 +66,7 @@ CMyFont::CMyFont(STSStyle& style)
// CWord
-CWord::CWord(STSStyle& style, CStringW str, int ktype, int kstart, int kend, double scalex, double scaley,
+CWord::CWord(const STSStyle& style, CStringW str, int ktype, int kstart, int kend, double scalex, double scaley,
RenderingCaches& renderingCaches)
: m_fDrawn(false)
, m_p(INT_MAX, INT_MAX)
@@ -422,7 +422,7 @@ void CWord::Transform_SSE2(const CPoint& org)
// CText
-CText::CText(STSStyle& style, CStringW str, int ktype, int kstart, int kend, double scalex, double scaley,
+CText::CText(const STSStyle& style, CStringW str, int ktype, int kstart, int kend, double scalex, double scaley,
RenderingCaches& renderingCaches)
: CWord(style, str, ktype, kstart, kend, scalex, scaley, renderingCaches)
{
@@ -533,7 +533,7 @@ bool CText::CreatePath()
// CPolygon
-CPolygon::CPolygon(STSStyle& style, CStringW str, int ktype, int kstart, int kend, double scalex, double scaley, int baseline,
+CPolygon::CPolygon(const STSStyle& style, CStringW str, int ktype, int kstart, int kend, double scalex, double scaley, int baseline,
RenderingCaches& renderingCaches)
: CWord(style, str, ktype, kstart, kend, scalex, scaley, renderingCaches)
, m_baseline(baseline)