summaryrefslogtreecommitdiff
path: root/store/workben/t_store.cxx
diff options
context:
space:
mode:
authorMichaël Lefèvre <lefevre00@yahoo.fr>2014-04-07 11:44:43 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-05-12 11:32:38 +0200
commit70e744b2157ebe48f3a5c839560fedf6521d0464 (patch)
tree4e29618cc5a36f25557bd130226abdfe96e46848 /store/workben/t_store.cxx
parentd1516d488c081ec3a5d730d2b1626a0c8dc39a73 (diff)
fdo#43157 Remove OSL_POSTCOND, prefer SAL_WARN_IF
Change-Id: Ia89a2dce799c7ba90bcd19919195bfd2c7a4a180 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'store/workben/t_store.cxx')
-rw-r--r--store/workben/t_store.cxx25
1 files changed, 11 insertions, 14 deletions
diff --git a/store/workben/t_store.cxx b/store/workben/t_store.cxx
index 25ce3f7be9a6..455f053a72ec 100644
--- a/store/workben/t_store.cxx
+++ b/store/workben/t_store.cxx
@@ -426,9 +426,9 @@ int SAL_CALL main (int argc, char **argv)
eErrCode = aFile.symlink (
aPath, OUString("000000/"),
OUString(), aPath);
- OSL_POSTCOND(
- ((eErrCode == store_E_None ) ||
- (eErrCode == store_E_AlreadyExists) ),
+ SAL_WARN_IF(
+ eErrCode != store_E_None && eErrCode != store_E_AlreadyExists,
+ "store",
"t_store::main(): store_symlink() failed");
// Create symlink to file.
@@ -437,9 +437,9 @@ int SAL_CALL main (int argc, char **argv)
eErrCode = aFile.symlink (
aPath, aLinkName,
aPath, OUString("demostor-1.dat"));
- OSL_POSTCOND(
- ((eErrCode == store_E_None ) ||
- (eErrCode == store_E_AlreadyExists) ),
+ SAL_WARN_IF(
+ eErrCode != store_E_None && eErrCode != store_E_AlreadyExists,
+ "store",
"t_store::main(): store_symlink() failed");
if ((eErrCode == store_E_None ) ||
(eErrCode == store_E_AlreadyExists) )
@@ -449,9 +449,9 @@ int SAL_CALL main (int argc, char **argv)
eErrCode = aFile.rename (
aPath, aLinkName,
aPath, aShortcut);
- OSL_POSTCOND(
- ((eErrCode == store_E_None ) ||
- (eErrCode == store_E_AlreadyExists) ),
+ SAL_WARN_IF(
+ eErrCode != store_E_None && eErrCode != store_E_AlreadyExists,
+ "store",
"t_store::main(): store_rename() failed");
}
@@ -461,12 +461,9 @@ int SAL_CALL main (int argc, char **argv)
eErrCode = aDir.create (
aFile, aPath, aDirName, store_AccessReadCreate);
- OSL_POSTCOND(
- (eErrCode == store_E_None),
+ SAL_WARN_IF(
+ eErrCode != store_E_None,
"t_store::main(): store_createDirectory() failed");
- if (eErrCode == store_E_None)
- {
- }
}
// Directory iteration.