Changeset 60921 in webkit
- Timestamp:
- Jun 9, 2010 3:55:11 PM (14 years ago)
- Location:
- trunk/WebKit/qt
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/qt/ChangeLog
r60917 r60921 1 2010-06-09 Anders Bakken <agbakken@gmail.com> 2 3 Reviewed by David Levin. 4 5 [Qt] EditCommandQt.cpp/h have coding-style errors 6 https://bugs.webkit.org/show_bug.cgi?id=40248 7 8 * WebCoreSupport/EditCommandQt.cpp: 9 (EditCommandQt::EditCommandQt): 10 (EditCommandQt::~EditCommandQt): 11 (EditCommandQt::redo): 12 (EditCommandQt::undo): 13 * WebCoreSupport/EditCommandQt.h: 14 1 15 2010-06-09 Anders Bakken <agbakken@gmail.com> 2 16 -
trunk/WebKit/qt/WebCoreSupport/EditCommandQt.cpp
r55633 r60921 28 28 QUndoCommand(parent), 29 29 #endif 30 _cmd(cmd),_first(true)30 m_cmd(cmd), m_first(true) 31 31 { 32 32 } 33 33 34 34 35 EditCommandQt::~EditCommandQt() { 35 EditCommandQt::~EditCommandQt() 36 { 36 37 } 37 38 38 39 39 void EditCommandQt::redo() { 40 if (_first) { 41 _first = false; 40 void EditCommandQt::redo() 41 { 42 if (m_first) { 43 m_first = false; 42 44 return; 43 45 } 44 if (_cmd) { 45 _cmd->reapply(); 46 } 46 if (m_cmd) 47 m_cmd->reapply(); 47 48 } 48 49 49 50 50 void EditCommandQt::undo() {51 if (_cmd){52 _cmd->unapply();53 }51 void EditCommandQt::undo() 52 { 53 if (m_cmd) 54 m_cmd->unapply(); 54 55 } 55 56 -
trunk/WebKit/qt/WebCoreSupport/EditCommandQt.h
r37409 r60921 18 18 */ 19 19 20 #ifndef E DITCOMMANDQT_H21 #define E DITCOMMANDQT_H20 #ifndef EditCommandQt_h 21 #define EditCommandQt_h 22 22 23 #include <EditCommand.h> 24 #include <QUndoCommand> 23 25 #include <qglobal.h> 24 QT_BEGIN_NAMESPACE25 class QUndoCommand;26 QT_END_NAMESPACE27 28 #include <QUndoCommand>29 #include <EditCommand.h>30 26 31 27 class EditCommandQt … … 42 38 43 39 private: 44 WTF::RefPtr<WebCore::EditCommand> _cmd;45 bool _first;40 WTF::RefPtr<WebCore::EditCommand> m_cmd; 41 bool m_first; 46 42 }; 47 43
Note: See TracChangeset
for help on using the changeset viewer.