summaryrefslogtreecommitdiff
path: root/distance.c
diff options
context:
space:
mode:
authorChristian Wieninger <cwieninger@gmx.de>2011-09-22 19:43:08 +0200
committerChristian Wieninger <cwieninger@gmx.de>2011-09-22 19:43:08 +0200
commiteff341390c079060d0904a53b7eebe84e2315f3a (patch)
treed45d902e7a7022a95a3e9c58346d88c45e0da517 /distance.c
parentbe2c5ff1bfdff45d384981816ef692f0179a7f15 (diff)
downloadvdr-plugin-epgsearch-eff341390c079060d0904a53b7eebe84e2315f3a.tar.gz
vdr-plugin-epgsearch-eff341390c079060d0904a53b7eebe84e2315f3a.tar.bz2
Delete trailing whitespace, thanks to Ville Skyttä for patches
Diffstat (limited to 'distance.c')
-rw-r--r--distance.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/distance.c b/distance.c
index 688fbb1..4065200 100644
--- a/distance.c
+++ b/distance.c
@@ -61,7 +61,7 @@ int mi;
//**************************************************
// Get a pointer to the specified cell of the matrix
-//**************************************************
+//**************************************************
int *Distance::GetCellPointer (int *pOrigin, int col, int row, int nCols)
{
@@ -69,7 +69,7 @@ int *Distance::GetCellPointer (int *pOrigin, int col, int row, int nCols)
}
//*****************************************************
-// Get the contents of the specified cell in the matrix
+// Get the contents of the specified cell in the matrix
//*****************************************************
int Distance::GetAt (int *pOrigin, int col, int row, int nCols)
@@ -115,7 +115,7 @@ int left; // contents of cell immediately to left
int diag; // contents of cell immediately above and to left
int sz; // number of cells in matrix
- // Step 1
+ // Step 1
n = min((int)strlen(s), maxLength);
m = min((int)strlen(t), maxLength);
@@ -159,7 +159,7 @@ int sz; // number of cells in matrix
cost = 1;
}
- // Step 6
+ // Step 6
above = GetAt (d,i-1,j, n);
left = GetAt (d,i, j-1, n);
@@ -174,6 +174,6 @@ int sz; // number of cells in matrix
result = GetAt (d, n, m, n);
free (d);
return result;
-
+
}