summaryrefslogtreecommitdiff
path: root/editeng/source
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-06-29 14:04:27 +0200
committerNoel Grandin <noel@peralex.com>2015-06-30 09:13:24 +0200
commitd16d9f950f8cb6d8948875372c9ff1f0aae9fb7a (patch)
treeb8d2146504c704fb9dfa11ea835ae39ff49e3dec /editeng/source
parentfa5822ce69bfc80ac8b1c5caa98de7e5c7ccf568 (diff)
remove some unnecessary typedefs to pointer
that were really not helping make the code any clearer. Found with a search git grep -P 'typedef\s+\w+\s*\*\s*\w+\;' and manual inspection Change-Id: I6a5c031e9e060ad3623a7586ec8a8cc4fe6252e9
Diffstat (limited to 'editeng/source')
-rw-r--r--editeng/source/misc/svxacorr.cxx6
-rw-r--r--editeng/source/rtf/svxrtf.cxx2
2 files changed, 3 insertions, 5 deletions
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx
index 426c4364436d..070ab119f052 100644
--- a/editeng/source/misc/svxacorr.cxx
+++ b/editeng/source/misc/svxacorr.cxx
@@ -95,8 +95,6 @@ static const sal_Char sImplWordChars[] = "-'";
OUString EncryptBlockName_Imp(const OUString& rName);
-typedef SvxAutoCorrectLanguageLists* SvxAutoCorrectLanguageListsPtr;
-
static inline bool IsWordDelim( const sal_Unicode c )
{
return ' ' == c || '\t' == c || 0x0a == c ||
@@ -1563,7 +1561,7 @@ bool SvxAutoCorrect::CreateLanguageFile( const LanguageTag& rLanguageTag, bool b
OUString sUserDirFile( GetAutoCorrFileName( rLanguageTag, true, false, false ));
OUString sShareDirFile( sUserDirFile );
- SvxAutoCorrectLanguageListsPtr pLists = 0;
+ SvxAutoCorrectLanguageLists* pLists = 0;
tools::Time nMinTime( 0, 2 ), nAktTime( tools::Time::SYSTEM ), nLastCheckTime( tools::Time::EMPTY );
@@ -1692,7 +1690,7 @@ static void GeneratePackageName ( const OUString& rShort, OUString& rPackageName
}
static const SvxAutocorrWord* lcl_SearchWordsInList(
- SvxAutoCorrectLanguageListsPtr pList, const OUString& rTxt,
+ SvxAutoCorrectLanguageLists* pList, const OUString& rTxt,
sal_Int32& rStt, sal_Int32 nEndPos)
{
const SvxAutocorrWordList* pAutoCorrWordList = pList->GetAutocorrWordList();
diff --git a/editeng/source/rtf/svxrtf.cxx b/editeng/source/rtf/svxrtf.cxx
index 1bc5cf1c5dbb..c4a82217735f 100644
--- a/editeng/source/rtf/svxrtf.cxx
+++ b/editeng/source/rtf/svxrtf.cxx
@@ -420,7 +420,7 @@ void SvxRTFParser::ReadColorTable()
{
// one color is finished, fill in the table
// try to map the values to SV internal names
- ColorPtr pColor = new Color( nRed, nGreen, nBlue );
+ Color* pColor = new Color( nRed, nGreen, nBlue );
if( aColorTbl.empty() &&
sal_uInt8(-1) == nRed && sal_uInt8(-1) == nGreen && sal_uInt8(-1) == nBlue )
pColor->SetColor( COL_AUTO );