summaryrefslogtreecommitdiff
path: root/solenv/gcc-wrappers
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-10-14 16:52:01 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-10-15 07:59:16 +0000
commitce8bb761f39db039fca2e312348a263d7fd7bf19 (patch)
treed226672f6da44d81396b981c313287aa3b8c60e4 /solenv/gcc-wrappers
parent48b1c8898d2f5a54435d23c412a0c65b553ef46d (diff)
clang-cl loplugin: solenv
Change-Id: I0a1075b92e787fc8bab7cfab5c3f24ad918a9181 Reviewed-on: https://gerrit.libreoffice.org/29850 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'solenv/gcc-wrappers')
-rw-r--r--solenv/gcc-wrappers/wrapper.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/solenv/gcc-wrappers/wrapper.cxx b/solenv/gcc-wrappers/wrapper.cxx
index cc57698a3aa9..cc312722f201 100644
--- a/solenv/gcc-wrappers/wrapper.cxx
+++ b/solenv/gcc-wrappers/wrapper.cxx
@@ -129,7 +129,7 @@ string processccargs(vector<string> rawargs) {
}
else if(!(*i).compare(0,2,"-D")) {
// need to re-escape strings for preprocessor
- for(size_t pos=(*i).find("\"",0); pos!=string::npos; pos=(*i).find("\"",pos)) {
+ for(size_t pos=(*i).find("\""); pos!=string::npos; pos=(*i).find("\"",pos)) {
(*i).replace(pos,0,"\\");
pos+=2;
}
@@ -202,12 +202,12 @@ int startprocess(string command, string args) {
if(!CreateProcess(nullptr, // Process Name
cmdlineBuf, // Command Line
- NULL, // Process Handle not Inheritable
- NULL, // Thread Handle not Inheritable
+ nullptr, // Process Handle not Inheritable
+ nullptr, // Thread Handle not Inheritable
TRUE, // Handles are Inherited
0, // No creation flags
- NULL, // Environment for process
- NULL, // Use same starting directory
+ nullptr, // Environment for process
+ nullptr, // Use same starting directory
&si, // Startup Info
&pi) // Process Information
) {
@@ -223,7 +223,7 @@ int startprocess(string command, string args) {
DWORD readlen, writelen, ret;
HANDLE stdout_handle=GetStdHandle(STD_OUTPUT_HANDLE);
while(true) {
- int success=ReadFile(childout_read,buffer,BUFLEN,&readlen,NULL);
+ int success=ReadFile(childout_read,buffer,BUFLEN,&readlen,nullptr);
// check if the child process has exited
if(GetLastError()==ERROR_BROKEN_PIPE)
break;
@@ -232,7 +232,7 @@ int startprocess(string command, string args) {
exit(1);
}
if(readlen!=0) {
- WriteFile(stdout_handle,buffer,readlen,&writelen,NULL);
+ WriteFile(stdout_handle,buffer,readlen,&writelen,nullptr);
}
}
WaitForSingleObject(pi.hProcess, INFINITE);