aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2011-06-12 18:46:38 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2011-06-12 18:46:38 +0000
commitc2edb25f8bf437eafc3a22c4260069fa31795c05 (patch)
tree6b2012d506e61c8ea3d3bd66feb6ee6a0e52d37d
parent8866962ab8511e51a58647d0183df298130cff1f (diff)
downloadqmmp-c2edb25f8bf437eafc3a22c4260069fa31795c05.tar.gz
qmmp-c2edb25f8bf437eafc3a22c4260069fa31795c05.tar.bz2
qmmp-c2edb25f8bf437eafc3a22c4260069fa31795c05.zip
removed useless code
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2228 90c681e8-e032-0410-971d-27865f9a5e38
-rw-r--r--src/qmmp/statehandler.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/qmmp/statehandler.cpp b/src/qmmp/statehandler.cpp
index 8246fd5e0..b6a9a062f 100644
--- a/src/qmmp/statehandler.cpp
+++ b/src/qmmp/statehandler.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2008-2010 by Ilya Kotov *
+ * Copyright (C) 2008-2011 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -31,8 +31,7 @@ StateHandler* StateHandler::m_instance = 0;
StateHandler::StateHandler(QObject *parent)
: QObject(parent), m_mutex(QMutex::Recursive)
{
- if (!m_instance)
- m_instance = this;
+ m_instance = this;
m_elapsed = -1;
m_bitrate = 0;
m_frequency = 0;
@@ -42,14 +41,12 @@ StateHandler::StateHandler(QObject *parent)
m_state = Qmmp::Stopped;
m_next_engine = 0;
m_current_engine = 0;
- //m_mutex = QMutex(QMutex::Recursive);
}
StateHandler::~StateHandler()
{
- if (m_instance == this)
- m_instance = 0;
+ m_instance = 0;
}
void StateHandler::dispatch(qint64 elapsed,