[dasher] Initialised potentially-unused variable bDidSomething. (Only a warning
- From: Patrick Welche <pwelche src gnome org>
- To: svn-commits-list gnome org
- Subject: [dasher] Initialised potentially-unused variable bDidSomething. (Only a warning
- Date: Mon, 18 May 2009 09:40:28 -0400 (EDT)
commit 6169b41d1b874500d0e128f299b04002bb851a81
Author: Alan Lawrence <acl33 inf phy cam ac uk>
Date: Mon May 18 14:37:19 2009 +0100
Initialised potentially-unused variable bDidSomething. (Only a warning
on Mac OS X...)
---
ChangeLog | 2 ++
Src/DasherCore/DefaultFilter.cpp | 2 +-
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 1ff7551..880a017 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -11,6 +11,8 @@
* StylusFilter.{h,cpp}: KeyUp/Down were missing parameters, so were
not actually overriding corresponding methods in DefaultFilter.
* DasherView.{h,cpp}: Remove empty CDasherView::HandleEvent method.
+ * DefaultFilter.cpp: Initialised potentially-unused variable
+ bDidSomething.
2009-05-16 Patrick Welche <prlw1 cam ac uk>
diff --git a/Src/DasherCore/DefaultFilter.cpp b/Src/DasherCore/DefaultFilter.cpp
index 8e6620c..e96de85 100644
--- a/Src/DasherCore/DefaultFilter.cpp
+++ b/Src/DasherCore/DefaultFilter.cpp
@@ -41,7 +41,7 @@ bool CDefaultFilter::DecorateView(CDasherView *pView) {
}
bool CDefaultFilter::Timer(int Time, CDasherView *m_pDasherView, CDasherModel *m_pDasherModel, Dasher::VECTOR_SYMBOL_PROB *pAdded, int *pNumDeleted) {
- bool bDidSomething;
+ bool bDidSomething = false;
if (!GetBoolParameter(BP_DASHER_PAUSED))
{
myint iDasherX;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]