forked from qt-creator/qt-creator
Removed stray tokens and fixed warnings/errors when compiling with pedantic C++ compilers.
This commit is contained in:
@@ -691,7 +691,7 @@ bool currentTextEditorPosition(QString *fileNameIn /* = 0 */,
|
||||
int *lineNumberIn /* = 0 */)
|
||||
{
|
||||
QString fileName;
|
||||
int lineNumber;
|
||||
int lineNumber = 0;
|
||||
if (TextEditor::ITextEditor *textEditor = currentTextEditor()) {
|
||||
if (const Core::IFile *file = textEditor->file()) {
|
||||
fileName = file->fileName();
|
||||
|
||||
Reference in New Issue
Block a user