From: Montel L. <mo...@kd...> - 2013-06-12 05:32:01
|
Git commit 71afde5f0be0ee9afe54fca1411209c0864e2a87 by Montel Laurent. Committed on 12/06/2013 at 07:31. Pushed by mlaurent into branch 'master'. Minor optimization M +1 -1 src/core/monitor/audiosignal.cpp M +2 -1 src/core/monitor/glwidget.cpp http://commits.kde.org/kdenlive/71afde5f0be0ee9afe54fca1411209c0864e2a87 diff --git a/src/core/monitor/audiosignal.cpp b/src/core/monitor/audiosignal.cpp index 3ef05bc..b3047c0 100644 --- a/src/core/monitor/audiosignal.cpp +++ b/src/core/monitor/audiosignal.cpp @@ -172,7 +172,7 @@ void AudioSignal::paintEvent(QPaintEvent* /*e*/) QPen pen(QPalette().dark().color()); pen.setStyle(Qt::DotLine); p.setPen(pen); - for (int l = 0; l < dbscale.size(); l++) { + for (int l = 0; l < dbscale.size(); ++l) { if (!horiz) { double xf = IEC_Scale(dbscale[l]) * h; if (showdb) p.drawText(0, height() - xf + 2, diff --git a/src/core/monitor/glwidget.cpp b/src/core/monitor/glwidget.cpp index 6888315..368da46 100644 --- a/src/core/monitor/glwidget.cpp +++ b/src/core/monitor/glwidget.cpp @@ -64,7 +64,8 @@ void GLWidget::activate() GLWidget::~GLWidget() { makeCurrent(); - if (m_texture[0]) glDeleteTextures(3, m_texture); + if (m_texture[0]) + glDeleteTextures(3, m_texture); delete m_fbo; } |