Browse Source

no wstring::clear()

David Rose 21 years ago
parent
commit
f68ab23323
1 changed files with 2 additions and 2 deletions
  1. 2 2
      panda/src/pgui/pgEntry.cxx

+ 2 - 2
panda/src/pgui/pgEntry.cxx

@@ -189,7 +189,7 @@ press(const MouseWatcherParameter &param, bool background) {
                  (background && get_background_focus())) {
         // Keyboard button.
         if (!_candidate_wtext.empty()) {
-          _candidate_wtext.clear();
+          _candidate_wtext = wstring();
           _text_geom_stale = true;
         }
 
@@ -273,7 +273,7 @@ keystroke(const MouseWatcherParameter &param, bool background) {
         // A normal visible character.  Add a new character to the
         // text entry, if there's room.
         if (!_candidate_wtext.empty()) {
-          _candidate_wtext.clear();
+          _candidate_wtext = wstring();
           _text_geom_stale = true;
         }
         wstring new_char(1, (wchar_t)keycode);