+2004-12-19 Georg Baum <Georg.Baum@post.rwth-aachen.de>
+
+ * ghelpers.C (getDefaultUnit): add return statement to shut up the
+ compiler
+ * ghelpers.C (buildLengthNoRelUnitList): use std::string::npos
+ instead of -1
+
2004-12-12 John Spray <spray_john@users.sourceforge.net>
* glade/Makefile.am: update to include all current glade
}
}
+
string const getDefaultUnit()
{
switch (lyxrc.default_papersize) {
case PAPER_A5PAPER:
case PAPER_B5PAPER: return "cm"; break;
}
+ // shut up compiler
+ return "cm";
}
vector<string> data;
for (int i = 0; i < num_units; ++i) {
string str(unit_name_gui[i]);
- if (str.find("%") == -1)
+ if (str.find("%") == string::npos)
data.push_back(unit_name_gui[i]);
}