Skip to content

Commit

Permalink
STYLE: remove ^M characters
Browse files Browse the repository at this point in the history
  • Loading branch information
pieper committed Sep 2, 2019
1 parent be071a0 commit 9e89c22
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions Libs/DICOM/Core/ctkDICOMDatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,7 @@ bool ctkDICOMDatabasePrivate::applyDisplayedFieldsChanges( QMap<QString, QMap<QS
if (displayStudiesQuery.next())
{
QString displayStudiesFieldUpdateString;
QList<QString> boundValues;
QList<QString> boundValues;
foreach (QString tagName, currentStudy.keys())
{
if (!tagName.compare("PatientIndex"))
Expand All @@ -1072,12 +1072,12 @@ bool ctkDICOMDatabasePrivate::applyDisplayedFieldsChanges( QMap<QString, QMap<QS
// Trim the separators from the end
displayStudiesFieldUpdateString = displayStudiesFieldUpdateString.left(displayStudiesFieldUpdateString.size() - 3);

QSqlQuery updateDisplayStudyStatement(this->Database);
updateDisplayStudyStatement.prepare( QString("UPDATE Studies SET %1 WHERE StudyInstanceUID = ? ;").arg(displayStudiesFieldUpdateString) );
foreach (QString boundValue, boundValues)
{
updateDisplayStudyStatement.addBindValue(boundValue);
}
QSqlQuery updateDisplayStudyStatement(this->Database);
updateDisplayStudyStatement.prepare( QString("UPDATE Studies SET %1 WHERE StudyInstanceUID = ? ;").arg(displayStudiesFieldUpdateString) );
foreach (QString boundValue, boundValues)
{
updateDisplayStudyStatement.addBindValue(boundValue);
}
updateDisplayStudyStatement.addBindValue(currentStudy["StudyInstanceUID"]);
this->loggedExec(updateDisplayStudyStatement);

Expand Down Expand Up @@ -1109,7 +1109,7 @@ bool ctkDICOMDatabasePrivate::applyDisplayedFieldsChanges( QMap<QString, QMap<QS
if (displaySeriesQuery.next())
{
QString displaySeriesFieldUpdateString;
QList<QString> boundValues;
QList<QString> boundValues;
foreach (QString tagName, currentSeries.keys())
{
displaySeriesFieldUpdateString.append( tagName + " = ? , " );
Expand All @@ -1120,11 +1120,11 @@ bool ctkDICOMDatabasePrivate::applyDisplayedFieldsChanges( QMap<QString, QMap<QS

QSqlQuery updateDisplaySeriesStatement(this->Database);
updateDisplaySeriesStatement.prepare( QString("UPDATE Series SET %1 WHERE SeriesInstanceUID = ? ;").arg(displaySeriesFieldUpdateString) );
foreach (QString boundValue, boundValues)
{
updateDisplaySeriesStatement.addBindValue(boundValue);
}
updateDisplaySeriesStatement.addBindValue(currentSeries["SeriesInstanceUID"]);
foreach (QString boundValue, boundValues)
{
updateDisplaySeriesStatement.addBindValue(boundValue);
}
updateDisplaySeriesStatement.addBindValue(currentSeries["SeriesInstanceUID"]);
this->loggedExec(updateDisplaySeriesStatement);

QSqlQuery updateDisplayedFieldsUpdatedTimestampStatement(this->Database);
Expand Down

0 comments on commit 9e89c22

Please sign in to comment.