Skip to content

Commit

Permalink
rename _ExitTxtCmd -> kExitTxtCmd (#1)
Browse files Browse the repository at this point in the history
* Update browser.cpp

* Update edittext.cpp

* Update edittext.h
  • Loading branch information
Sedictious committed Aug 17, 2018
1 parent f7b1d17 commit 4968398
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gui/browser.cpp
Expand Up @@ -95,7 +95,7 @@ void BrowserDialog::open() {
void BrowserDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 data) {
switch (cmd) {
//Search for typed-in directory
case _ExitTxtCmd:
case kExitTxtCmd:
_node = Common::FSNode(_currentPath->getEditString());
updateListing();
break;
Expand Down
4 changes: 2 additions & 2 deletions gui/widgets/edittext.cpp
Expand Up @@ -132,7 +132,7 @@ void EditTextWidget::startEditMode() {
void EditTextWidget::endEditMode() {
releaseFocus();

sendCommand(_ExitTxtCmd, 0);
sendCommand(kExitTxtCmd, 0);
sendCommand(_finishCmd, 0);
}

Expand All @@ -143,7 +143,7 @@ void EditTextWidget::abortEditMode() {
releaseFocus();
}

Common::String EditTextWidget::getEditString(){
Common::String EditTextWidget::getEditString() {
return _backupString;
}

Expand Down
2 changes: 1 addition & 1 deletion gui/widgets/edittext.h
Expand Up @@ -30,7 +30,7 @@
namespace GUI {

enum {
_ExitTxtCmd = 'TXTE'
kExitTxtCmd = 'TXTE'
};

/* EditTextWidget */
Expand Down

0 comments on commit 4968398

Please sign in to comment.