[Libreoffice-commits] core.git: extensions/source
Noel Grandin
noel at peralex.com
Fri Nov 20 05:17:17 PST 2015
extensions/source/plugin/unx/unxmgr.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 6c1c9c4a57ca29c2ba8749a945a476f082ccac44
Author: Noel Grandin <noel at peralex.com>
Date: Fri Nov 20 15:15:57 2015 +0200
fix build
after my commit e3990370f832c8a69d1b6b22ec315dc0616d5535
"loplugin:unusedfields extensions"
Change-Id: Ia9d10e7df88e9a82cf5c8bd883346ead3debd2bd
diff --git a/extensions/source/plugin/unx/unxmgr.cxx b/extensions/source/plugin/unx/unxmgr.cxx
index 7f45607..3e82c38 100644
--- a/extensions/source/plugin/unx/unxmgr.cxx
+++ b/extensions/source/plugin/unx/unxmgr.cxx
@@ -207,9 +207,9 @@ static void CheckPluginRegistryFiles( const OString& rPath, list< PluginDescript
struct dirent* pDirEnt = nullptr;
struct stat aStat;
struct dirent u;
- while( pDIR && ! readdir_r( pDIR, &u.asDirent, &pDirEnt ) && pDirEnt )
+ while( pDIR && ! readdir_r( pDIR, &u, &pDirEnt ) && pDirEnt )
{
- char* pBaseName = u.asDirent.d_name;
+ char* pBaseName = u.d_name;
if( rtl_str_compare( ".", pBaseName ) && rtl_str_compare( "..", pBaseName ) )
{
OStringBuffer aBuf( 1024 );
@@ -269,9 +269,9 @@ Sequence<PluginDescription> XPluginManager_Impl::impl_getPluginDescriptions() th
{
DIR* pDIR = opendir(aPath.getStr());
struct dirent* pDirEnt = nullptr;
- while( pDIR && ! readdir_r( pDIR, &u.asDirent, &pDirEnt ) && pDirEnt )
+ while( pDIR && ! readdir_r( pDIR, &u, &pDirEnt ) && pDirEnt )
{
- char* pBaseName = u.asDirent.d_name;
+ char* pBaseName = u.d_name;
if( pBaseName[0] != '.' ||
pBaseName[1] != '.' ||
pBaseName[2] != 0 )
More information about the Libreoffice-commits
mailing list