Skip to content

Commit

Permalink
fix warnings: Member function may be 'const'
Browse files Browse the repository at this point in the history
  • Loading branch information
michaellukashov committed Mar 22, 2017
1 parent 50212e7 commit 71b6520
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/NetBox/WinSCPDialogs.cpp
Expand Up @@ -4292,10 +4292,10 @@ NB_DISABLE_COPY(TRightsContainer)
TRights GetRights();
void SetRights(const TRights & Value);
void SetAddXToDirectories(bool Value);
bool GetAddXToDirectories();
bool GetAddXToDirectories() const;
TFarCheckBox * GetChecks(TRights::TRight Right);
TRights::TState GetStates(TRights::TRight Right);
bool GetAllowUndef();
bool GetAllowUndef() const;
void SetAllowUndef(bool Value);
void SetStates(TRights::TRight Flag, TRights::TState Value);
void OctalEditExit(TObject * Sender);
Expand Down Expand Up @@ -4569,7 +4569,7 @@ void TRightsContainer::SetRights(const TRights & Value)
}
}

bool TRightsContainer::GetAddXToDirectories()
bool TRightsContainer::GetAddXToDirectories() const
{
return FDirectoriesXCheck ? FDirectoriesXCheck->GetChecked() : false;
}
Expand All @@ -4582,7 +4582,7 @@ void TRightsContainer::SetAddXToDirectories(bool Value)
}
}

bool TRightsContainer::GetAllowUndef()
bool TRightsContainer::GetAllowUndef() const
{
DebugAssert(FCheckBoxes[_countof(FCheckBoxes) - 1] != nullptr);
return FCheckBoxes[_countof(FCheckBoxes) - 1]->GetAllowGrayed();
Expand Down Expand Up @@ -4946,7 +4946,7 @@ class TCopyParamsContainer : public TFarDialogContainer

void SetParams(const TCopyParamType & Value);
TCopyParamType GetParams() const;
int GetHeight();
int GetHeight() const;

protected:
TFarRadioButton * TMTextButton;
Expand Down Expand Up @@ -5405,7 +5405,7 @@ void TCopyParamsContainer::ValidateSpeedComboExit(TObject * /*Sender*/)
}
}

int TCopyParamsContainer::GetHeight()
int TCopyParamsContainer::GetHeight() const
{
return 16;
}
Expand Down

0 comments on commit 71b6520

Please sign in to comment.