From 43f726271df877cf68915eb37e93bc0901409cd1 Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Tue, 10 Apr 2012 18:33:55 +0300 Subject: [PATCH] Fixed typo --- Library/Measure.cpp | 24 ++++++++++++------------ Library/Measure.h | 6 +++--- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/Library/Measure.cpp b/Library/Measure.cpp index bd70e17d..8ed74ccc 100644 --- a/Library/Measure.cpp +++ b/Library/Measure.cpp @@ -83,9 +83,9 @@ CMeasure::CMeasure(CMeterWindow* meterWindow, const WCHAR* name) : m_MeterWindow m_IfEqualValue(), m_IfAboveValue(), m_IfBelowValue(), - m_IfEqualCommited(false), - m_IfAboveCommited(false), - m_IfBelowCommited(false), + m_IfEqualCommitted(false), + m_IfAboveCommitted(false), + m_IfBelowCommitted(false), m_Disabled(false), m_UpdateDivider(1), m_UpdateCounter(1), @@ -478,15 +478,15 @@ bool CMeasure::PreUpdate() { if ((int)m_Value == (int)m_IfEqualValue) { - if (!m_IfEqualCommited) + if (!m_IfEqualCommitted) { - m_IfEqualCommited = true; // To avoid crashing by !RainmeterUpdate due to infinite loop + m_IfEqualCommitted = true; // To avoid crashing by !Update due to infinite loop Rainmeter->ExecuteCommand(m_IfEqualAction.c_str(), m_MeterWindow); } } else { - m_IfEqualCommited = false; + m_IfEqualCommitted = false; } } @@ -495,15 +495,15 @@ bool CMeasure::PreUpdate() { if (m_Value > m_IfAboveValue) { - if (!m_IfAboveCommited) + if (!m_IfAboveCommitted) { - m_IfAboveCommited = true; // To avoid crashing by !RainmeterUpdate due to infinite loop + m_IfAboveCommitted= true; // To avoid crashing by !Update due to infinite loop Rainmeter->ExecuteCommand(m_IfAboveAction.c_str(), m_MeterWindow); } } else { - m_IfAboveCommited = false; + m_IfAboveCommitted = false; } } @@ -512,15 +512,15 @@ bool CMeasure::PreUpdate() { if (m_Value < m_IfBelowValue) { - if (!m_IfBelowCommited) + if (!m_IfBelowCommitted) { - m_IfBelowCommited = true; // To avoid crashing by !RainmeterUpdate due to infinite loop + m_IfBelowCommitted = true; // To avoid crashing by !Update due to infinite loop Rainmeter->ExecuteCommand(m_IfBelowAction.c_str(), m_MeterWindow); } } else { - m_IfBelowCommited = false; + m_IfBelowCommitted = false; } } } diff --git a/Library/Measure.h b/Library/Measure.h index 054cb1b6..51e79792 100644 --- a/Library/Measure.h +++ b/Library/Measure.h @@ -120,9 +120,9 @@ protected: std::wstring m_IfEqualAction; // The IfEqual action std::wstring m_IfAboveAction; // The IfAbove action std::wstring m_IfBelowAction; // The IfBelow action - bool m_IfEqualCommited; // True when the IfEqual action is executed. - bool m_IfAboveCommited; // True when the IfAbove action is executed. - bool m_IfBelowCommited; // True when the IfBelow action is executed. + bool m_IfEqualCommitted; // True when the IfEqual action is executed + bool m_IfAboveCommitted; // True when the IfAbove action is executed + bool m_IfBelowCommitted; // True when the IfBelow action is executed bool m_Disabled; // Status of the measure int m_UpdateDivider; // Divider for the update int m_UpdateCounter; // Current update counter