cppcheck: the scope of this variable can be reduced
This commit is contained in:
parent
14b8caf1cf
commit
dac2303f4b
1 changed files with 3 additions and 4 deletions
|
@ -1974,8 +1974,7 @@ void SmSymDefineDialog::UpdateButtons()
|
||||||
{
|
{
|
||||||
bool bAdd = false,
|
bool bAdd = false,
|
||||||
bChange = false,
|
bChange = false,
|
||||||
bDelete = false,
|
bDelete = false;
|
||||||
bEqual;
|
|
||||||
XubString aTmpSymbolName (aSymbols.GetText()),
|
XubString aTmpSymbolName (aSymbols.GetText()),
|
||||||
aTmpSymbolSetName (aSymbolSets.GetText());
|
aTmpSymbolSetName (aSymbolSets.GetText());
|
||||||
|
|
||||||
|
@ -1983,7 +1982,7 @@ void SmSymDefineDialog::UpdateButtons()
|
||||||
{
|
{
|
||||||
// alle Einstellungen gleich?
|
// alle Einstellungen gleich?
|
||||||
//! (Font-, Style- und SymbolSet Name werden nicht case sensitiv verglichen)
|
//! (Font-, Style- und SymbolSet Name werden nicht case sensitiv verglichen)
|
||||||
bEqual = pOrigSymbol
|
bool bEqual = pOrigSymbol
|
||||||
&& aTmpSymbolSetName.EqualsIgnoreCaseAscii(aOldSymbolSetName.GetText())
|
&& aTmpSymbolSetName.EqualsIgnoreCaseAscii(aOldSymbolSetName.GetText())
|
||||||
&& aTmpSymbolName.Equals(pOrigSymbol->GetName())
|
&& aTmpSymbolName.Equals(pOrigSymbol->GetName())
|
||||||
&& aFonts.GetSelectEntry().EqualsIgnoreCaseAscii(
|
&& aFonts.GetSelectEntry().EqualsIgnoreCaseAscii(
|
||||||
|
@ -2000,7 +1999,7 @@ void SmSymDefineDialog::UpdateButtons()
|
||||||
|
|
||||||
// aendern nur falls altes Symbol vorhanden und am neuen etwas anders ist
|
// aendern nur falls altes Symbol vorhanden und am neuen etwas anders ist
|
||||||
bChange = pOrigSymbol && !bEqual;
|
bChange = pOrigSymbol && !bEqual;
|
||||||
}
|
}
|
||||||
|
|
||||||
aAddBtn .Enable(bAdd);
|
aAddBtn .Enable(bAdd);
|
||||||
aChangeBtn.Enable(bChange);
|
aChangeBtn.Enable(bChange);
|
||||||
|
|
Loading…
Reference in a new issue