summaryrefslogtreecommitdiff
path: root/fxjs
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs')
-rw-r--r--fxjs/cjs_eventhandler.cpp4
-rw-r--r--fxjs/cjs_eventhandler.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/fxjs/cjs_eventhandler.cpp b/fxjs/cjs_eventhandler.cpp
index 0fd330fd13..43605d985b 100644
--- a/fxjs/cjs_eventhandler.cpp
+++ b/fxjs/cjs_eventhandler.cpp
@@ -396,7 +396,7 @@ WideString& CJS_EventHandler::Change() {
return m_WideStrChangeDu;
}
-const WideString& CJS_EventHandler::ChangeEx() {
+WideString CJS_EventHandler::ChangeEx() const {
return m_WideStrChangeEx;
}
@@ -628,6 +628,6 @@ bool CJS_EventHandler::WillCommit() const {
return m_bWillCommit;
}
-const WideString& CJS_EventHandler::TargetName() const {
+WideString CJS_EventHandler::TargetName() const {
return m_strTargetName;
}
diff --git a/fxjs/cjs_eventhandler.h b/fxjs/cjs_eventhandler.h
index aa02895924..7c33ed739e 100644
--- a/fxjs/cjs_eventhandler.h
+++ b/fxjs/cjs_eventhandler.h
@@ -144,7 +144,7 @@ class CJS_EventHandler {
bool IsValid() const;
WideString& Change();
- const WideString& ChangeEx();
+ WideString ChangeEx() const;
int CommitKey() const;
bool FieldFull() const;
bool KeyDown() const;
@@ -161,7 +161,7 @@ class CJS_EventHandler {
CJS_Field* Target_Field();
WideString& Value();
bool WillCommit() const;
- const WideString& TargetName() const;
+ WideString TargetName() const;
JS_EVENT_T EventType() const { return m_eEventType; }