Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

Use const refs to avoid copying #81

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cpp/diff_match_patch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ QList<Diff> diff_match_patch::diff_main(const QString &text1,
}


QList<Diff> diff_match_patch::diff_compute(QString text1, QString text2,
QList<Diff> diff_match_patch::diff_compute(const QString &text1, const QString &text2,
bool checklines, clock_t deadline) {
QList<Diff> diffs;

Expand Down Expand Up @@ -1739,7 +1739,7 @@ QList<Patch> diff_match_patch::patch_make(const QString &text1,
}


QList<Patch> diff_match_patch::patch_deepCopy(QList<Patch> &patches) {
QList<Patch> diff_match_patch::patch_deepCopy(const QList<Patch> &patches) {
QList<Patch> patchesCopy;
foreach(Patch aPatch, patches) {
Patch patchCopy = Patch();
Expand Down