Skip to content

Commit d1d2439

Browse files
committed
Fixed noexcepts
1 parent be45971 commit d1d2439

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

source/text-editor/editor.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ void Editor::handleEvent(TEvent& event){
3030
saveFile();
3131
}
3232
}else if(event.what == evKeyboard){
33-
std::cerr << "key down " << event.keyDown.text << "\n";
3433
turbo::handleKeyDown(scintilla, event.keyDown);
3534
}
3635
//TODO: handle mouse events

source/text-editor/editorView.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#include <text-editor/editorView.hpp>
22

3-
EditorView::EditorView(const TRect& bounds) : TSurfaceView(bounds){
3+
EditorView::EditorView(const TRect& bounds) noexcept : TSurfaceView(bounds){
44
surface = &drawSurface;
55
drawSurface.resize(bounds.b - bounds.a);
66
}
77

8-
void EditorView::resize(const TRect& bounds){
8+
void EditorView::resize(const TRect& bounds) noexcept{
99
drawSurface.resize(bounds.b - bounds.a);
1010
if(editor){
1111
editor->setSize(bounds.b - bounds.a);

0 commit comments

Comments
 (0)