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

Use rtl::isAscii* instead of ctype.h is* (and fix passing plain char)

Change-Id: I93eeb586310cb1896b067b7c665e1fdee92d47b4
üst d213e5a0
......@@ -34,6 +34,7 @@
#include "osl/module.h"
#include "osl/module.hxx"
#include "osl/thread.h"
#include "rtl/character.hxx"
#include "rtl/process.h"
#include "rtl/string.h"
#include "rtl/string.hxx"
......@@ -127,7 +128,7 @@ public:
int len = strlen(tn.get());
for(int i = 0; i < len; i++)
{
if(!isalnum(tn[i]))
if(!rtl::isAsciiAlphanumeric(static_cast<unsigned char>(tn[i])))
{
tn[i] = '_';
}
......
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