diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-03-09 11:17:07 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-03-10 18:32:00 +0100 |
commit | 8c3b333955fd1e8a7d31f177723fdfaff3e588c1 (patch) | |
tree | b4a3f4fbfc898cc1cbf8869f65dd960238e87938 /sal | |
parent | 127fbac23afa1fc94dd7f8aae390e1ff55ed5d64 (diff) |
Remove unnecessary typedefs (that introduced reserved identifiers)
Change-Id: I726ca611cce66d7e25dc91b8baaec7e588eb1b8e
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/unx/profile.cxx | 20 |
1 files 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); |