Kaydet (Commit) dcfb17b8 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Some more loplugin:cstylecast: shell

Change-Id: I8d9846dcfd8b0f686f7321a3e7b7b0d70428723d
üst 42a53497
......@@ -126,7 +126,7 @@ static OUString xdg_user_dir_lookup (const char *type)
if(osl_File_E_None == osl_openFile(aConfigFileURL.pData, &handle, osl_File_OpenFlag_Read))
{
rtl::ByteSequence seq;
while (osl_File_E_None == osl_readLine(handle , (sal_Sequence **)&seq))
while (osl_File_E_None == osl_readLine(handle , reinterpret_cast<sal_Sequence **>(&seq)))
{
/* Remove newline at end */
int relative = 0;
......@@ -134,7 +134,7 @@ static OUString xdg_user_dir_lookup (const char *type)
if(len>0 && seq[len-1] == '\n')
seq[len-1] = 0;
p = (char *)seq.getArray();
p = reinterpret_cast<char *>(seq.getArray());
while (*p == ' ' || *p == '\t')
p++;
if (strncmp (p, "XDG_", 4) != 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment