From 0842a2707cfca15c0af5eee6ed9d76547a01a7f9 Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Sun, 17 Aug 2014 00:50:33 +0200 Subject: use bool directly Change-Id: I314e290b453c55e345559d8abef9b00622493ed3 --- i18npool/source/localedata/filewriter.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'i18npool') diff --git a/i18npool/source/localedata/filewriter.cxx b/i18npool/source/localedata/filewriter.cxx index 19b2558a7ec0..9c301448f9f1 100644 --- a/i18npool/source/localedata/filewriter.cxx +++ b/i18npool/source/localedata/filewriter.cxx @@ -133,7 +133,7 @@ void OFileWriter::writeIntParameter(const sal_Char* pAsciiStr, const sal_Int16 c bool OFileWriter::writeDefaultParameter(const sal_Char* pAsciiStr, const OUString& str, sal_Int16 count) const { - bool bBool = (str == "true" ? 1 : 0); + bool bBool = str == "true"; fprintf(m_f,"static const sal_Unicode default%s%d[] = {%d};\n", pAsciiStr, count, bBool); return bBool; } -- cgit