Skip to content

Commit a5696dd

Browse files
committed
some TODOs removed
1 parent c00c9dc commit a5696dd

File tree

6 files changed

+7
-12
lines changed

6 files changed

+7
-12
lines changed

src/acneditor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ AcnEditorFactory::AcnEditorFactory()
6262
setIndenterCreator([]() { return new Indenter; });
6363
setAutoCompleterCreator([]() { return new Completion::AutoCompleter; });
6464

65-
addHoverHandler(new TextEditor::BaseHoverHandler); // TODO maybe better tips?
65+
addHoverHandler(new TextEditor::BaseHoverHandler);
6666

6767
setCodeFoldingSupported(true);
6868
setMarksVisible(true);
@@ -77,5 +77,5 @@ AcnEditorFactory::AcnEditorFactory()
7777

7878
void AcnEditorWidget::findUsages()
7979
{
80-
// TODO acn
80+
// TODO #166
8181
}

src/asn1sccserviceprovider.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ void Asn1SccServiceProvider::start()
9494
m_stayAliveTimer.start();
9595
m_asn1sccService->start();
9696

97-
if (!m_asn1sccService->waitForStarted()) // TODO handle error?
97+
if (!m_asn1sccService->waitForStarted())
9898
Messages::messageProcessError(m_asn1sccService);
9999
}
100100

@@ -107,7 +107,7 @@ void Asn1SccServiceProvider::stop()
107107
m_stayAliveTimer.stop();
108108
m_asn1sccService->terminate();
109109

110-
if (!m_asn1sccService->waitForFinished()) // TODO handle error?
110+
if (!m_asn1sccService->waitForFinished())
111111
Messages::messageProcessError(m_asn1sccService);
112112
}
113113

@@ -170,7 +170,7 @@ QJsonDocument Asn1SccServiceProvider::buildAstRequestData(
170170
input["AcnFiles"] = acnFilesArray;
171171

172172
/* TODO: since AST parser is not ready to work with fields introduced through ACN files,
173-
* it is harmful to include them in daemon call*/
173+
* it is harmful to include them in daemon call (#169)*/
174174
input["AcnFiles"] = QJsonArray();
175175

176176
input["Options"] = buildAstGenerationOptions();

src/asneditor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ AsnEditorFactory::AsnEditorFactory()
6767
setAutoCompleterCreator([]() { return new Completion::AutoCompleter; });
6868
setIndenterCreator([]() { return new Indenter; });
6969

70-
addHoverHandler(new TextEditor::BaseHoverHandler); // TODO maybe better hover tips?
70+
addHoverHandler(new TextEditor::BaseHoverHandler);
7171

7272
setCodeFoldingSupported(true);
7373
setMarksVisible(true);

src/completion/autocompleter.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ bool AutoCompleter::isInComment(const QTextCursor &cursor) const
4545

4646
bool AutoCompleter::isInString(const QTextCursor &cursor) const
4747
{
48-
// TODO: multiline strings in ASN?
49-
// TODO: escaping string?
5048
QTextCursor moved = cursor;
5149
moved.movePosition(QTextCursor::StartOfLine);
5250
const int positionInLine = cursor.position() - moved.position();

src/editor.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,6 @@ void EditorWidget::contextMenuEvent(QContextMenuEvent *e)
9393

9494
void EditorWidget::finalizeInitialization()
9595
{
96-
// TODO ? setLanguageSettingsId(Constants::SettingsId);
97-
9896
auto document = qobject_cast<Document *>(textDocument());
9997
connect(document,
10098
&Document::extraSelectionsUpdated,

src/projectcontenthandler.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,12 @@ void ProjectContentHandler::handleFileContentChanged(const Utils::FileName &path
8787
{
8888
QStringList projects = m_storage->getProjectsForFile(path);
8989

90-
// TODO: Is this conditions still needed?
9190
if (projects.empty()) {
9291
allProcessingFinished();
9392
return;
9493
}
9594

96-
for (const QString projectName : projects) {
95+
for (const QString &projectName : projects) {
9796
const auto paths = m_storage->getFilesPathsFromProject(projectName);
9897
processFiles(projectName, paths);
9998
}

0 commit comments

Comments
 (0)