projects
/
jmdict-cli.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7173b8
)
Removed unneeded warning.
author
Philipp Reh
<sefi@s-e-f-i.de>
Sat, 21 Feb 2009 09:42:17 +0000
(10:42 +0100)
committer
Philipp Reh
<sefi@s-e-f-i.de>
Sat, 21 Feb 2009 09:42:17 +0000
(10:42 +0100)
Remove \2 at the end.
kana2romaji.cpp
patch
|
blob
|
history
diff --git
a/kana2romaji.cpp
b/kana2romaji.cpp
index 2963dcfbccdcb328568d260bd45c4309207b00f8..01124fd55b6825ec2675524723ba65b24252d305 100644
(file)
--- a/
kana2romaji.cpp
+++ b/
kana2romaji.cpp
@@
-417,7
+417,6
@@
void kana2romaji(const string& kana, string& rom) {
}
else
{
- cout << "Encountered a placeholder at the beginning. Just removing it." << endl;
rom.erase(pos);
}
}
@@
-426,5
+425,7
@@
void kana2romaji(const string& kana, string& rom) {
{
if(pos + 1 < rom.size())
rom[pos] = rom[pos + 1];
+ else
+ rom.erase(pos);
}
}