diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-28 20:00:57 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-28 20:26:24 +0100 |
commit | 8e15df3dce289c43baac162fe36421c2647d40de (patch) | |
tree | 3fe4ef6184a7a50760abd77e723fb6a9a91fa94c /pyuno | |
parent | 9548c0bd597c1d5f1e5fde3118cb6905bd86bf6e (diff) |
bool improvements
Change-Id: I42f6d8b3e62834b0612d84586f791f25e967c9c7
Diffstat (limited to 'pyuno')
-rw-r--r-- | pyuno/source/loader/pyuno_loader.cxx | 2 | ||||
-rw-r--r-- | pyuno/source/module/pyuno_runtime.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pyuno/source/loader/pyuno_loader.cxx b/pyuno/source/loader/pyuno_loader.cxx index 375ea21d4562..11b2c78379d7 100644 --- a/pyuno/source/loader/pyuno_loader.cxx +++ b/pyuno/source/loader/pyuno_loader.cxx @@ -146,7 +146,7 @@ static void prependPythonPath( const OUString & pythonPathBootstrap ) { OUStringBuffer bufPYTHONPATH( 256 ); sal_Int32 nIndex = 0; - while( 1 ) + while( true ) { sal_Int32 nNew = pythonPathBootstrap.indexOf( ' ', nIndex ); OUString fileUrl; diff --git a/pyuno/source/module/pyuno_runtime.cxx b/pyuno/source/module/pyuno_runtime.cxx index 436ae20cae7a..c8c379580c01 100644 --- a/pyuno/source/module/pyuno_runtime.cxx +++ b/pyuno/source/module/pyuno_runtime.cxx @@ -261,7 +261,7 @@ PyRef stRuntimeImpl::create( const Reference< XComponentContext > &ctx ) readLoggingConfig( &(c->logLevel) , &(c->logFile) ); log( c, LogLevel::CALL, "Instantiating pyuno bridge" ); - c->valid = 1; + c->valid = true; c->xContext = ctx; c->xInvocation = Reference< XSingleServiceFactory > ( ctx->getServiceManager()->createInstanceWithContext( |