summaryrefslogtreecommitdiff
path: root/sal/osl/unx/file_path_helper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sal/osl/unx/file_path_helper.cxx')
-rw-r--r--sal/osl/unx/file_path_helper.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/sal/osl/unx/file_path_helper.cxx b/sal/osl/unx/file_path_helper.cxx
index 6c8dab15c5b0..ae3781e11eaf 100644
--- a/sal/osl/unx/file_path_helper.cxx
+++ b/sal/osl/unx/file_path_helper.cxx
@@ -51,8 +51,9 @@ void SAL_CALL osl_systemPathRemoveSeparator(rtl_uString* pustrPath)
pustrPath->buffer[pustrPath->length] = (sal_Unicode)'\0';
}
- OSL_POSTCOND((0 == pustrPath->length) || (1 == pustrPath->length) || \
- (pustrPath->length > 1 && pustrPath->buffer[pustrPath->length - 1] != FPH_CHAR_PATH_SEPARATOR), \
+ SAL_WARN_IF( !((0 == pustrPath->length) || (1 == pustrPath->length) ||
+ (pustrPath->length > 1 && pustrPath->buffer[pustrPath->length - 1] != FPH_CHAR_PATH_SEPARATOR)),
+ "sal.osl",
"osl_systemPathRemoveSeparator: Post condition failed");
}
}
@@ -72,7 +73,8 @@ void SAL_CALL osl_systemPathEnsureSeparator(rtl_uString** ppustrPath)
rtl_uString_assign(ppustrPath, path.pData);
}
- OSL_POSTCOND(path.endsWith(FPH_PATH_SEPARATOR()), \
+ SAL_WARN_IF( !path.endsWith(FPH_PATH_SEPARATOR()),
+ "sal.osl",
"osl_systemPathEnsureSeparator: Post condition failed");
}
}