forked from qt-creator/qt-creator
Fix release build warnings about unitialized variables.
Change-Id: I1a6ba631b0626969b328276a91561c34154c9a1c Reviewed-on: http://codereview.qt.nokia.com/1920 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com> Reviewed-by: Eike Ziller <eike.ziller@nokia.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
@@ -374,7 +374,8 @@ bool BaseTextDocument::save(QString *errorString, const QString &fileName, bool
|
||||
|
||||
// When autosaving, we don't want to modify the document/location under the user's fingers.
|
||||
BaseTextEditorWidget *editorWidget = 0;
|
||||
int savedPosition, savedAnchor;
|
||||
int savedPosition = 0;
|
||||
int savedAnchor = 0;
|
||||
int undos = d->m_document->availableUndoSteps();
|
||||
|
||||
// When saving the current editor, make sure to maintain the cursor position for undo
|
||||
|
||||
Reference in New Issue
Block a user