[vlc-commits] commit: skins2: cosmetic (a single addObserver is sufficient) (Erwan Tulou )
git at videolan.org
git at videolan.org
Sun Jan 16 23:05:49 CET 2011
vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Thu Jan 13 14:57:38 2011 +0100| [f54769ebe2b65198d17f4ca4c20c4a39befcfc59] | committer: Erwan Tulou
skins2: cosmetic (a single addObserver is sufficient)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f54769ebe2b65198d17f4ca4c20c4a39befcfc59
---
modules/gui/skins2/utils/var_text.cpp | 14 ++++----------
1 files changed, 4 insertions(+), 10 deletions(-)
diff --git a/modules/gui/skins2/utils/var_text.cpp b/modules/gui/skins2/utils/var_text.cpp
index 4ca805f..3be733f 100644
--- a/modules/gui/skins2/utils/var_text.cpp
+++ b/modules/gui/skins2/utils/var_text.cpp
@@ -152,16 +152,10 @@ void VarText::set( const UString &rText )
pVarManager->getHelpText().addObserver( this );
}
if( m_text.find( "$T" ) != UString::npos ||
- m_text.find( "$t" ) != UString::npos )
- {
- pVlcProc->getTimeVar().addObserver( this );
- }
- if( m_text.find( "$L" ) != UString::npos ||
- m_text.find( "$l" ) != UString::npos )
- {
- pVlcProc->getTimeVar().addObserver( this );
- }
- if( m_text.find( "$D" ) != UString::npos ||
+ m_text.find( "$t" ) != UString::npos ||
+ m_text.find( "$L" ) != UString::npos ||
+ m_text.find( "$l" ) != UString::npos ||
+ m_text.find( "$D" ) != UString::npos ||
m_text.find( "$d" ) != UString::npos )
{
pVlcProc->getTimeVar().addObserver( this );
More information about the vlc-commits
mailing list