summaryrefslogtreecommitdiff
path: root/shell/source/unix/exec
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:23:46 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:31:39 +0100
commit7a8d48f57d106005be80e37ac74e8e2544ad83fe (patch)
tree4fe46b96ce47ff3bced1e9a6bf17cff87081b179 /shell/source/unix/exec
parent28034eaf925aa50d379dd5cffccc20d7edc95aec (diff)
loplugin:nullptr (automatic rewrite)
Change-Id: Ied61699170bd5d2c3878135b1a43b4dc1deff4d4
Diffstat (limited to 'shell/source/unix/exec')
-rw-r--r--shell/source/unix/exec/shellexec.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/source/unix/exec/shellexec.cxx b/shell/source/unix/exec/shellexec.cxx
index 127acd85b527..99ed3a7a2f45 100644
--- a/shell/source/unix/exec/shellexec.cxx
+++ b/shell/source/unix/exec/shellexec.cxx
@@ -231,13 +231,13 @@ void SAL_CALL ShellExec::execute( const OUString& aCommand, const OUString& aPar
if ( !aLaunchBuffer.isEmpty() )
{
FILE *pLaunch = popen( aLaunchBuffer.makeStringAndClear().getStr(), "w" );
- if ( pLaunch != NULL )
+ if ( pLaunch != nullptr )
{
if ( 0 == pclose( pLaunch ) )
return;
}
// Failed, do not try DESKTOP_LAUNCH any more
- pDesktopLaunch = NULL;
+ pDesktopLaunch = nullptr;
}
OString cmd =
@@ -248,7 +248,7 @@ void SAL_CALL ShellExec::execute( const OUString& aCommand, const OUString& aPar
aBuffer.makeStringAndClear();
#endif
FILE *pLaunch = popen(cmd.getStr(), "w");
- if ( pLaunch != NULL )
+ if ( pLaunch != nullptr )
{
if ( 0 == pclose( pLaunch ) )
return;