summaryrefslogtreecommitdiffstats
path: root/desktop/source/deployment/misc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-10-14 16:57:24 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-10-16 14:19:22 +0000
commit08abfef116d893d6a062d432ff89e7af8b7b679d (patch)
treedc6f12f1669b40651a42b7a0556e264bc607a42b /desktop/source/deployment/misc
parentclang-cl loplugin: dtrans (diff)
downloadcore-08abfef116d893d6a062d432ff89e7af8b7b679d.tar.gz
core-08abfef116d893d6a062d432ff89e7af8b7b679d.zip
clang-cl loplugin: desktop
Change-Id: If2f5bfa6c05098c5362cd6c7b546520dc01ee821 Reviewed-on: https://gerrit.libreoffice.org/29871 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'desktop/source/deployment/misc')
-rw-r--r--desktop/source/deployment/misc/dp_misc.cxx4
-rw-r--r--desktop/source/deployment/misc/lockfile.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/desktop/source/deployment/misc/dp_misc.cxx b/desktop/source/deployment/misc/dp_misc.cxx
index 3bb4ec041a40..01f1ab95dca1 100644
--- a/desktop/source/deployment/misc/dp_misc.cxx
+++ b/desktop/source/deployment/misc/dp_misc.cxx
@@ -471,7 +471,7 @@ void writeConsoleWithStream(OUString const & sText, HANDLE stream)
{
DWORD nWrittenChars = 0;
WriteFile(stream, sText.getStr(),
- sText.getLength() * 2, &nWrittenChars, NULL);
+ sText.getLength() * 2, &nWrittenChars, nullptr);
}
#else
void writeConsoleWithStream(OUString const & sText, FILE * stream)
@@ -506,7 +506,7 @@ OUString readConsole()
sal_Unicode aBuffer[1024];
DWORD dwRead = 0;
//unopkg.com feeds unopkg.exe with wchar_t|s
- if (ReadFile( GetStdHandle(STD_INPUT_HANDLE), &aBuffer, sizeof(aBuffer), &dwRead, NULL ) )
+ if (ReadFile( GetStdHandle(STD_INPUT_HANDLE), &aBuffer, sizeof(aBuffer), &dwRead, nullptr ) )
{
OSL_ASSERT((dwRead % 2) == 0);
OUString value( aBuffer, dwRead / 2);
diff --git a/desktop/source/deployment/misc/lockfile.cxx b/desktop/source/deployment/misc/lockfile.cxx
index f33cd703fa5d..fa30bf256fee 100644
--- a/desktop/source/deployment/misc/lockfile.cxx
+++ b/desktop/source/deployment/misc/lockfile.cxx
@@ -46,9 +46,9 @@ static OString impl_getHostname()
prevent windows from connecting to the net to get its own
hostname by using the netbios name
*/
- sal_Int32 sz = MAX_COMPUTERNAME_LENGTH + 1;
+ DWORD sz = MAX_COMPUTERNAME_LENGTH + 1;
char* szHost = new char[sz];
- if (GetComputerName(szHost, (LPDWORD)&sz))
+ if (GetComputerName(szHost, &sz))
aHost = OString(szHost);
else
aHost = OString("UNKNOWN");