Fix typos in comments

parent 689c2ba7
......@@ -114,7 +114,7 @@ void Difference::determineInlineDifferences()
DifferenceString* dl = destinationLineAt(i);
DifferenceStringPair* pair = new DifferenceStringPair(sl, dl);
// return value 0 means something went wrong creating the table so dont bother finding markers
// return value 0 means something went wrong creating the table so don't bother finding markers
if (table.createTable(pair) != 0)
table.createListsOfMarkers();
}
......
......@@ -109,7 +109,7 @@ public:
/**
* @p oldlines - lines that were removed.
* @p newLines - lines that were inserted.
* @p startPos - number of line at which the change occured
* @p startPos - number of line at which the change occurred
*/
QPair<QList<Difference*>, QList<Difference*> > linesChanged(const QStringList& oldLines, const QStringList& newLines, int editLineNumber);
......
......@@ -327,7 +327,7 @@ bool KompareModelList::saveDestination(DiffModel* model)
{
qCDebug(LIBKOMPAREDIFF2) << "KompareModelList::saveDestination: ";
// Unecessary safety check, we can guarantee there are unsaved changes!!!
// Unnecessary safety check, we can guarantee there are unsaved changes!!!
if (!model->hasUnsavedChanges())
return true;
......@@ -399,7 +399,7 @@ bool KompareModelList::saveDestination(DiffModel* model)
// Make sure the destination directory exists, it is possible when using -N to not have the destination dir/file available
if (m_info->mode == Kompare::ComparingDirs)
{
// Dont use destination which was used for creating the diff directly, use the original URL!!!
// Don't use destination which was used for creating the diff directly, use the original URL!!!
// FIXME!!! Wrong destination this way! Need to add the sub directory to the url!!!!
qCDebug(LIBKOMPAREDIFF2) << "Tempfilename (save) : " << temp.fileName();
qCDebug(LIBKOMPAREDIFF2) << "Model->path+file : " << model->destinationPath() << model->destinationFile();
......
......@@ -217,7 +217,7 @@ template<class SequencePair> void LevenshteinTable<SequencePair>::createListsOfM
unsigned int difference = getContent(x, y);
// If the number of differences is more than half the length of the largest string
// dont bother to mark the individual changes
// don't bother to mark the individual changes
// Patch based on work by Felix Berger as put as attachment to bug 75794
if (!m_sequences->needFineGrainedOutput(difference))
{
......
......@@ -252,7 +252,7 @@ void InteractiveDiffTest::testDifferenceContents_data()
DifferenceHash expectedDifferences;
expectedDifferences.insert(0, qMakePair(sourceLines, destinationLines));
// The first exisiting difference inside the edit
// The first existing difference inside the edit
QTest::newRow("First inside") << patch << oldLines << newLines << 1 << true << 1 << expectedDifferences;
}
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment