From 8c3b333955fd1e8a7d31f177723fdfaff3e588c1 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 9 Mar 2016 11:17:07 +0100 Subject: Remove unnecessary typedefs (that introduced reserved identifiers) Change-Id: I726ca611cce66d7e25dc91b8baaec7e588eb1b8e --- sal/osl/unx/profile.cxx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/sal/osl/unx/profile.cxx b/sal/osl/unx/profile.cxx index 69e47330b68b..af8ebce3e25b 100644 --- a/sal/osl/unx/profile.cxx +++ b/sal/osl/unx/profile.cxx @@ -50,12 +50,12 @@ typedef time_t osl_TStamp; -typedef enum _osl_TLockMode +enum osl_TLockMode { un_lock, read_lock, write_lock -} osl_TLockMode; +}; -typedef struct _osl_TFile +struct osl_TFile { int m_Handle; sal_Char* m_pReadPtr; @@ -63,16 +63,16 @@ typedef struct _osl_TFile sal_Char* m_pWriteBuf; sal_uInt32 m_nWriteBufLen; sal_uInt32 m_nWriteBufFree; -} osl_TFile; +}; -typedef struct _osl_TProfileEntry +struct osl_TProfileEntry { sal_uInt32 m_Line; sal_uInt32 m_Offset; sal_uInt32 m_Len; -} osl_TProfileEntry; +}; -typedef struct _osl_TProfileSection +struct osl_TProfileSection { sal_uInt32 m_Line; sal_uInt32 m_Offset; @@ -80,10 +80,10 @@ typedef struct _osl_TProfileSection sal_uInt32 m_NoEntries; sal_uInt32 m_MaxEntries; osl_TProfileEntry* m_Entries; -} osl_TProfileSection; +}; /* Profile-data structure hidden behind oslProfile: */ -typedef struct _osl_TProfileImpl +struct osl_TProfileImpl { sal_uInt32 m_Flags; osl_TFile* m_pFile; @@ -97,7 +97,7 @@ typedef struct _osl_TProfileImpl osl_TProfileSection* m_Sections; pthread_mutex_t m_AccessLock; bool m_bIsValid; -} osl_TProfileImpl; +}; static osl_TFile* openFileImpl(const sal_Char* pszFilename, oslProfileOption ProfileFlags); static osl_TStamp closeFileImpl(osl_TFile* pFile, oslProfileOption Flags); -- cgit