All pastes #927096 Raw Edit

Anonymous

public cpp v1 · immutable
·published 2008-03-04 01:01 UTC
rendered paste body
void EditorTabWidget::Save(){	QWidget* _currentWidget = currentWidget();		if(!_currentWidget) // No document open, ignore the event		return;		EditorWidget* editorWidget = qobject_cast<EditorWidget*>(_currentWidget);	assert(editorWidget != 0);		editorWidget->Save();}/usr/include/qt4/Qsci/qsciscintilla.h: In member function ‘void QsciScintilla::qt_check_for_QOBJECT_macro(const T&) const [with T = EditorWidget]’:/usr/include/qt4/QtCore/qobject.h:426:   instantiated from ‘T qobject_cast(QObject*) [with T = EditorWidget*]’../source/editortabwidget.cpp:34:   instantiated from here/usr/include/qt4/Qsci/qsciscintilla.h:52: error: void value not ignored as it ought to bemake: *** [source/editortabwidget.o] Error 1