summaryrefslogtreecommitdiff
path: root/ios
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-04-12 20:38:50 +0300
committerTor Lillqvist <tml@collabora.com>2014-04-14 17:21:18 +0300
commita4351c3db546a815b9bdfd9989b440a333a342d4 (patch)
treefd8c18731598a7563a78748a2181464946a393a7 /ios
parent4688a4d4fb74cab711ab19743a6783d925626eb1 (diff)
Avoid NSLogging when not debugging
Change-Id: Ia6d3057ab013aa31dd40058e453f8ca18de91149
Diffstat (limited to 'ios')
-rw-r--r--ios/experimental/TiledLibreOffice/TiledLibreOffice/lo.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/ios/experimental/TiledLibreOffice/TiledLibreOffice/lo.mm b/ios/experimental/TiledLibreOffice/TiledLibreOffice/lo.mm
index 8a55107636a0..de02cff3706b 100644
--- a/ios/experimental/TiledLibreOffice/TiledLibreOffice/lo.mm
+++ b/ios/experimental/TiledLibreOffice/TiledLibreOffice/lo.mm
@@ -63,18 +63,18 @@ extern "C" void lo_initialize(NSString *documentPath)
} else {
UErrorCode icuStatus = U_ZERO_ERROR;
udata_setCommonData(icudata, &icuStatus);
+#if OSL_DEBUG_LEVEL > 0
if (U_FAILURE(icuStatus))
NSLog(@"udata_setCommonData failed");
else {
-#if OSL_DEBUG_LEVEL > 0
// Test that ICU works...
UConverter *cnv = ucnv_open("iso-8859-3", &icuStatus);
NSLog(@"ucnv_open(iso-8859-3)-> %p, err = %s, name=%s",
(void *)cnv, u_errorName(icuStatus), (!cnv)?"?":ucnv_getName(cnv,&icuStatus));
if (U_SUCCESS(icuStatus))
ucnv_close(cnv);
-#endif
}
+#endif
}
}
close(fd);