diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2013-04-07 12:06:47 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-04-07 14:23:11 +0200 |
commit | 1946794ae09ba732022fe6a74ea45e304ab70b84 (patch) | |
tree | e32bd7ba61fa021ecc7f8c85959df8ca837d6e81 /rsc | |
parent | 5b08c6e7a21dda94d5b755eea0b1ed1e9c199bec (diff) |
mass removal of rtl:: prefixes for O(U)String*
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk
have kept them, in order not to break external API (the automatic using declaration
is LO-internal).
Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
Diffstat (limited to 'rsc')
-rw-r--r-- | rsc/inc/rscall.h | 12 | ||||
-rw-r--r-- | rsc/inc/rscconst.hxx | 2 | ||||
-rw-r--r-- | rsc/inc/rscdb.hxx | 24 | ||||
-rw-r--r-- | rsc/inc/rscdef.hxx | 34 | ||||
-rw-r--r-- | rsc/inc/rschash.hxx | 8 | ||||
-rw-r--r-- | rsc/inc/rsclex.hxx | 2 | ||||
-rw-r--r-- | rsc/inc/rscrsc.hxx | 24 | ||||
-rw-r--r-- | rsc/inc/rsctools.hxx | 10 | ||||
-rw-r--r-- | rsc/inc/rsctop.hxx | 10 | ||||
-rw-r--r-- | rsc/inc/rsctree.hxx | 6 | ||||
-rw-r--r-- | rsc/source/parser/erscerr.cxx | 2 | ||||
-rw-r--r-- | rsc/source/parser/rscdb.cxx | 10 | ||||
-rw-r--r-- | rsc/source/parser/rscibas.cxx | 10 | ||||
-rw-r--r-- | rsc/source/parser/rscicpx.cxx | 2 | ||||
-rw-r--r-- | rsc/source/parser/rsclex.cxx | 5 | ||||
-rw-r--r-- | rsc/source/prj/start.cxx | 26 | ||||
-rw-r--r-- | rsc/source/res/rscall.cxx | 12 | ||||
-rw-r--r-- | rsc/source/res/rscmgr.cxx | 2 | ||||
-rw-r--r-- | rsc/source/res/rscstr.cxx | 2 | ||||
-rw-r--r-- | rsc/source/res/rsctop.cxx | 4 | ||||
-rw-r--r-- | rsc/source/rsc/rsc.cxx | 82 | ||||
-rw-r--r-- | rsc/source/tools/rscdef.cxx | 36 | ||||
-rw-r--r-- | rsc/source/tools/rschash.cxx | 2 | ||||
-rw-r--r-- | rsc/source/tools/rsctools.cxx | 8 |
24 files changed, 164 insertions, 171 deletions
diff --git a/rsc/inc/rscall.h b/rsc/inc/rscall.h index 3d2ab4aedbb0..96b3954174d3 100644 --- a/rsc/inc/rscall.h +++ b/rsc/inc/rscall.h @@ -34,12 +34,12 @@ class RscTop; class RscTypCont; /******************* G l o b a l V a r i a b l e s *********************/ -extern rtl::OString* pStdParType; -extern rtl::OString* pStdPar1; -extern rtl::OString* pStdPar2; -extern rtl::OString* pWinParType; -extern rtl::OString* pWinPar1; -extern rtl::OString* pWinPar2; +extern OString* pStdParType; +extern OString* pStdPar1; +extern OString* pStdPar2; +extern OString* pWinParType; +extern OString* pWinPar1; +extern OString* pWinPar2; extern sal_uInt32 nRefDeep; extern sal_uInt32 nRsc_XYMAPMODEId; extern sal_uInt32 nRsc_WHMAPMODEId; diff --git a/rsc/inc/rscconst.hxx b/rsc/inc/rscconst.hxx index 05eb843794e8..3cba043db1fc 100644 --- a/rsc/inc/rscconst.hxx +++ b/rsc/inc/rscconst.hxx @@ -81,7 +81,7 @@ public: class RscNameTable; -sal_uInt32 GetLangId( const rtl::OString& rLang); +sal_uInt32 GetLangId( const OString& rLang); class RscLangEnum : public RscEnum { diff --git a/rsc/inc/rscdb.hxx b/rsc/inc/rscdb.hxx index 89404d65cbd4..c0a416575ddd 100644 --- a/rsc/inc/rscdb.hxx +++ b/rsc/inc/rscdb.hxx @@ -41,8 +41,8 @@ class RscCmdLine; struct WriteRcContext { FILE * fOutput; - rtl::OString aOutputRc; - rtl::OString aOutputSysList; + OString aOutputRc; + OString aOutputSysList; RscCmdLine* pCmdLine; }; @@ -54,7 +54,7 @@ struct RscSysEntry { sal_uInt32 nKey; sal_uInt32 nRscTyp; - rtl::OString aFileName; + OString aFileName; sal_uInt32 nTyp; sal_uInt32 nRefId; }; @@ -66,10 +66,10 @@ class RscTypCont CharSet nSourceCharSet; sal_uInt32 nMachineId; // Globaler Maschinentyp RSCBYTEORDER_TYPE nByteOrder; // Intel oder - rtl::OString aLanguage; // output language + OString aLanguage; // output language std::vector< sal_uInt32 > aLangFallbacks; // language fallback list (entry 0 is language itself) - rtl::OString aSearchPath; // Suchen der Bitmap, Icon, Pointer - rtl::OString aSysSearchPath; // aSearchPath plus language specific paths + OString aSearchPath; // Suchen der Bitmap, Icon, Pointer + OString aSysSearchPath; // aSearchPath plus language specific paths sal_uInt32 nUniqueId; // eindeutiger Id fuer Systemresourcen sal_uLong nFilePos; // Position in der Datei ( MTF ) sal_uInt32 nPMId; // eindeutiger Id fuer PM-Rseourcefile @@ -254,7 +254,7 @@ class RscTypCont RscTop * pStyleFamily ); RscTop * InitClassSfxSlotInfo( RscTop * pSuper ); - void InsWinBit( RscTop * pClass, const rtl::OString& rName, + void InsWinBit( RscTop * pClass, const OString& rName, Atom nVal ); void WriteInc( FILE * fOutput, sal_uLong lKey ); @@ -290,7 +290,7 @@ public: std::map<sal_uInt64, sal_uLong> aIdTranslator; //Ordnet Resourcetypen und Id's einen Id zu //(unter PM), oder eine Dateiposition (MTF) - RscTypCont( RscError *, RSCBYTEORDER_TYPE, const rtl::OString& rSearchPath, sal_uInt32 nFlags ); + RscTypCont( RscError *, RSCBYTEORDER_TYPE, const OString& rSearchPath, sal_uInt32 nFlags ); ~RscTypCont(); Atom AddLanguage( const char* ); @@ -301,7 +301,7 @@ public: { return (nFlags & NOSYSRESTEST_FLAG) ? sal_False : sal_True; } sal_Bool IsSrsDefault() const { return (nFlags & SRSDEFAULT_FLAG) ? sal_True : sal_False; } - rtl::OString ChangeLanguage(const rtl::OString & rNewLang); + OString ChangeLanguage(const OString & rNewLang); const std::vector< sal_uInt32 >& GetFallbacks() const { return aLangFallbacks; } @@ -313,9 +313,9 @@ public: nSourceCharSet = aCharSet; return aOld; } - void SetSearchPath( const rtl::OString& rStr) { aSearchPath = rStr; } - rtl::OString GetSearchPath() const { return aSearchPath; } - void SetSysSearchPath( const rtl::OString& rStr ) { aSysSearchPath = rStr; } + void SetSearchPath( const OString& rStr) { aSearchPath = rStr; } + OString GetSearchPath() const { return aSearchPath; } + void SetSysSearchPath( const OString& rStr ) { aSysSearchPath = rStr; } void InsertType( RscTop * pType ) { aBaseLst.push_back( pType ); diff --git a/rsc/inc/rscdef.hxx b/rsc/inc/rscdef.hxx index be54ad756daa..0ca4ec6b5ff5 100644 --- a/rsc/inc/rscdef.hxx +++ b/rsc/inc/rscdef.hxx @@ -62,7 +62,7 @@ public: ((sal_Int32)aExp.aLong.nHi << 16); } sal_Bool Evaluate( sal_Int32 * pValue ) const; - void AppendMacro( rtl::OStringBuffer & ) const; + void AppendMacro( OStringBuffer & ) const; }; /*********** R s c I d ***************************************************/ @@ -96,7 +96,7 @@ public: static void SetNames( sal_Bool bSet = sal_True ); operator sal_Int32() const; // Gibt Nummer zurueck - rtl::OString GetName() const; // Gibt den Namen des Defines zurueck + OString GetName() const; // Gibt den Namen des Defines zurueck sal_Bool operator < ( const RscId& rRscId ) const; sal_Bool operator > ( const RscId& rRscId ) const; sal_Bool operator == ( const RscId& rRscId ) const; @@ -121,16 +121,16 @@ friend class RscId; RscExpression * pExp; // Ausdruck protected: - RscDefine( sal_uLong lFileKey, const rtl::OString& rDefName, + RscDefine( sal_uLong lFileKey, const OString& rDefName, sal_Int32 lDefId ); - RscDefine( sal_uLong lFileKey, const rtl::OString& rDefName, + RscDefine( sal_uLong lFileKey, const OString& rDefName, RscExpression * pExpression ); ~RscDefine(); void IncRef(){ nRefCount++; } sal_uInt32 GetRefCount() const { return nRefCount; } void DecRef(); void DefineToNumber(); - void SetName(const rtl::OString& rNewName) { m_aName = rNewName; } + void SetName(const OString& rNewName) { m_aName = rNewName; } using StringNode::Search; public: @@ -138,7 +138,7 @@ public: sal_uLong GetFileKey() const { return lFileKey; } sal_Bool Evaluate(); sal_Int32 GetNumber() const { return lId; } - rtl::OString GetMacro(); + OString GetMacro(); }; typedef ::std::vector< RscDefine* > RscSubDefList; @@ -149,9 +149,9 @@ friend class RscFileTab; private: RscSubDefList maList; // pExpression wird auf jedenfall Eigentum der Liste - RscDefine * New( sal_uLong lFileKey, const rtl::OString& rDefName, + RscDefine * New( sal_uLong lFileKey, const OString& rDefName, sal_Int32 lDefId, size_t lPos ); - RscDefine * New( sal_uLong lFileKey, const rtl::OString& rDefName, + RscDefine * New( sal_uLong lFileKey, const OString& rDefName, RscExpression * pExpression, size_t lPos ); sal_Bool Remove(); size_t GetPos( RscDefine* item ) { @@ -175,7 +175,7 @@ public: RscExpType aRE ); ~RscExpression(); sal_Bool Evaluate( sal_Int32 * pValue ); - rtl::OString GetMacro(); + OString GetMacro(); }; /********************** R S C F I L E ************************************/ @@ -197,8 +197,8 @@ public: sal_Bool bLoaded; // Ist die Datei geladen sal_Bool bScanned; // Wurde Datei nach Inclide abgesucht sal_Bool bDirty; // Dirty-Flag - rtl::OString aFileName; // Name der Datei - rtl::OString aPathName; // Pfad und Name der Datei + OString aFileName; // Name der Datei + OString aPathName; // Pfad und Name der Datei RscDefineList aDefLst; // Liste der Defines RscDependList aDepLst; // List of Depend @@ -228,13 +228,13 @@ public: class RscFileTab : public RscSubFileTab { RscDefTree aDefTree; - sal_uLong Find(const rtl::OString& rName); + sal_uLong Find(const OString& rName); public: RscFileTab(); ~RscFileTab(); RscDefine * FindDef( const char * ); - RscDefine * FindDef(const rtl::OString& rStr) + RscDefine * FindDef(const OString& rStr) { return FindDef(rStr.getStr()); } @@ -245,15 +245,15 @@ public: sal_Bool TestDef( sal_uLong lFileKey, size_t lPos, const RscExpression * pExpDec ); - RscDefine * NewDef( sal_uLong lKey, const rtl::OString& rDefName, + RscDefine * NewDef( sal_uLong lKey, const OString& rDefName, sal_Int32 lId, sal_uLong lPos ); - RscDefine * NewDef( sal_uLong lKey, const rtl::OString& rDefName, + RscDefine * NewDef( sal_uLong lKey, const OString& rDefName, RscExpression *, sal_uLong lPos ); // Alle Defines die in dieser Datei Definiert sind loeschen void DeleteFileContext( sal_uLong lKey ); - sal_uLong NewCodeFile(const rtl::OString& rName); - sal_uLong NewIncFile(const rtl::OString& rName, const rtl::OString& rPath); + sal_uLong NewCodeFile(const OString& rName); + sal_uLong NewIncFile(const OString& rName, const OString& rPath); RscFile * GetFile( sal_uLong lFileKey ){ return Get( lFileKey ); } }; diff --git a/rsc/inc/rschash.hxx b/rsc/inc/rschash.hxx index c015c2d6652d..b8f734445394 100644 --- a/rsc/inc/rschash.hxx +++ b/rsc/inc/rschash.hxx @@ -30,15 +30,15 @@ typedef sal_uInt32 Atom; class AtomContainer { Atom m_nNextID; - boost::unordered_map< rtl::OString, Atom, rtl::OStringHash > m_aStringToID; - boost::unordered_map< Atom, rtl::OString > m_aIDToString; + boost::unordered_map< OString, Atom, OStringHash > m_aStringToID; + boost::unordered_map< Atom, OString > m_aIDToString; public: AtomContainer(); ~AtomContainer(); - Atom getID( const rtl::OString& rStr, bool bOnlyIfExists = false ); - const rtl::OString& getString( Atom nAtom ); + Atom getID( const OString& rStr, bool bOnlyIfExists = false ); + const OString& getString( Atom nAtom ); }; diff --git a/rsc/inc/rsclex.hxx b/rsc/inc/rsclex.hxx index a2ad19f32fb3..2b6605f3604a 100644 --- a/rsc/inc/rsclex.hxx +++ b/rsc/inc/rsclex.hxx @@ -24,7 +24,7 @@ // a buffer for unique strings class StringContainer { - boost::unordered_set< rtl::OString, rtl::OStringHash > m_aStrings; + boost::unordered_set< OString, OStringHash > m_aStrings; public: StringContainer() {} ~StringContainer() {} diff --git a/rsc/inc/rscrsc.hxx b/rsc/inc/rscrsc.hxx index 92ffe0d530fc..d5a768e15733 100644 --- a/rsc/inc/rscrsc.hxx +++ b/rsc/inc/rscrsc.hxx @@ -41,29 +41,29 @@ class RscCmdLine public: RscStrList aInputList; // Liste der Quelldateien - rtl::OString aPath; // Liste der Pfade + OString aPath; // Liste der Pfade RSCBYTEORDER_TYPE nByteOrder; unsigned short nCommands; // Steuerbits - rtl::OString aOutputSrs; // Name der Srs-Ausgabedatei - rtl::OString aILDir; + OString aOutputSrs; // Name der Srs-Ausgabedatei + OString aILDir; struct OutputFile { - rtl::OString aLangName; // language name - rtl::OString aOutputRc; // target file - rtl::OString aLangSearchPath; // language specific search path - ::std::list< rtl::OString > aSysSearchDirs; // paths to search for images + OString aLangName; // language name + OString aOutputRc; // target file + OString aLangSearchPath; // language specific search path + ::std::list< OString > aSysSearchDirs; // paths to search for images OutputFile() {} }; std::list<OutputFile> m_aOutputFiles; - std::list< std::pair< rtl::OString, rtl::OString > > m_aReplacements; + std::list< std::pair< OString, OString > > m_aReplacements; RscCmdLine( int argc, char ** argv, RscError * pEH ); ~RscCmdLine(); - ::rtl::OString substitutePaths( const ::rtl::OString& rIn ); + OString substitutePaths( const OString& rIn ); }; /****************** R s c ************************************************/ @@ -73,12 +73,12 @@ class RscCompiler { private: void CreateResFile( const char * pRc ); - void Append( const rtl::OString& rOutputSrs, const rtl::OString& rTmpFile ); + void Append( const OString& rOutputSrs, const OString& rTmpFile ); bool GetImageFilePath( const RscCmdLine::OutputFile& rOutputFile, const WriteRcContext& rContext, - const rtl::OString& rBaseFileName, - rtl::OString& rImagePath, + const OString& rBaseFileName, + OString& rImagePath, FILE* pSysListFile ); void PreprocessSrsFile( const RscCmdLine::OutputFile& rOutputFile, const WriteRcContext& rContext, diff --git a/rsc/inc/rsctools.hxx b/rsc/inc/rsctools.hxx index 7d4db5892c93..e26efcd60807 100644 --- a/rsc/inc/rsctools.hxx +++ b/rsc/inc/rsctools.hxx @@ -40,10 +40,10 @@ enum RSCBYTEORDER_TYPE { RSC_BIGENDIAN, RSC_LITTLEENDIAN, RSC_SYSTEMENDIAN }; #define ALIGNED_SIZE( nSize ) \ (nSize + sizeof( void * ) -1) / sizeof( void * ) * sizeof( void * ) /******************* F u n c t i o n F o r w a r d s *******************/ -rtl::OString GetTmpFileName(); -sal_Bool Append(const rtl::OString &rDestFile, const rtl::OString &rSourceFile); -sal_Bool Append(FILE * fDest, rtl::OString &raSourceFile); -rtl::OString OutputFile(const rtl::OString &rInput, const char * ext); +OString GetTmpFileName(); +sal_Bool Append(const OString &rDestFile, const OString &rSourceFile); +sal_Bool Append(FILE * fDest, OString &raSourceFile); +OString OutputFile(const OString &rInput, const char * ext); char * ResponseFile( RscPtrPtr * ppCmd, char ** ppArgv, sal_uInt32 nArgc ); void RscExit( sal_uInt32 nExit ); @@ -55,7 +55,7 @@ char* rsc_strdup( const char* ); /****************** C L A S S E S ****************************************/ -typedef ::std::vector< rtl::OString* > RscStrList; +typedef ::std::vector< OString* > RscStrList; /*********** R s c C h a r ***********************************************/ class RscChar diff --git a/rsc/inc/rsctop.hxx b/rsc/inc/rsctop.hxx index 4f5b7842bd71..34723c618f1e 100644 --- a/rsc/inc/rsctop.hxx +++ b/rsc/inc/rsctop.hxx @@ -45,9 +45,9 @@ protected: RscTop * pSuperCl = NULL ); public: - rtl::OString aCallPar1; // Klassenaufruf ohne Typen bis ResId - rtl::OString aCallPar2; // Klassenaufruf ohne Typen ab ResId - rtl::OString aCallParType; // Klassenaufruf mit Typen + OString aCallPar1; // Klassenaufruf ohne Typen bis ResId + OString aCallPar2; // Klassenaufruf ohne Typen ab ResId + OString aCallParType; // Klassenaufruf mit Typen void SetSuperClass( RscTop * pClass ) { @@ -64,8 +64,8 @@ public: { return( 0 != aCallParType.getLength() ); } - void SetCallPar( const rtl::OString& rPar1, const rtl::OString& rPar2, - const rtl::OString& rParType ); + void SetCallPar( const OString& rPar1, const OString& rPar2, + const OString& rParType ); void SetRefClass( RscTop * pRef ) { pRefClass = pRef; } RscTop* GetRefClass() const { return pRefClass; } virtual RSCCLASS_TYPE GetClassType() const = 0; diff --git a/rsc/inc/rsctree.hxx b/rsc/inc/rsctree.hxx index 600db98097fe..ed3bb3ee2cb8 100644 --- a/rsc/inc/rsctree.hxx +++ b/rsc/inc/rsctree.hxx @@ -91,14 +91,14 @@ class StringNode : public NameNode protected: using NameNode::Search; - rtl::OString m_aName; + OString m_aName; public: StringNode() {} - StringNode(const rtl::OString& rStr) { m_aName = rStr; } + StringNode(const OString& rStr) { m_aName = rStr; } StringNode* Search( const char * ) const; - rtl::OString GetName() const { return m_aName; } + OString GetName() const { return m_aName; } }; #endif // _RSCTREE_HXX diff --git a/rsc/source/parser/erscerr.cxx b/rsc/source/parser/erscerr.cxx index 34e5f385dcd2..29da7b660a53 100644 --- a/rsc/source/parser/erscerr.cxx +++ b/rsc/source/parser/erscerr.cxx @@ -79,7 +79,7 @@ void RscError::WriteError( const ERRTYPE& rError, const char * pMessage ) if( 1 == nErrors ) StdLstErr(OString::number(nErrors).getStr()); else - StdLstErr(rtl::OString::valueOf(static_cast<sal_Int32>(nErrors -1)).getStr()); + StdLstErr(OString::valueOf(static_cast<sal_Int32>(nErrors -1)).getStr()); StdLstErr( " Error" ); StdLstErr( " found!!" ); } diff --git a/rsc/source/parser/rscdb.cxx b/rsc/source/parser/rscdb.cxx index ef74ef7c360d..7c975e09e281 100644 --- a/rsc/source/parser/rscdb.cxx +++ b/rsc/source/parser/rscdb.cxx @@ -34,12 +34,10 @@ #include <rscdb.hxx> #include <rscrsc.hxx> -using ::rtl::OString; -using ::rtl::OStringBuffer; RscTypCont :: RscTypCont( RscError * pErrHdl, RSCBYTEORDER_TYPE nOrder, - const rtl::OString& rSearchPath, + const OString& rSearchPath, sal_uInt32 nFlagsP ) : nSourceCharSet( RTL_TEXTENCODING_UTF8 ), @@ -75,9 +73,9 @@ RscTypCont :: RscTypCont( RscError * pErrHdl, Init(); } -rtl::OString RscTypCont::ChangeLanguage(const rtl::OString& rNewLang) +OString RscTypCont::ChangeLanguage(const OString& rNewLang) { - rtl::OString aRet = aLanguage; + OString aRet = aLanguage; aLanguage = rNewLang; ::std::vector< OUString > aFallbacks; @@ -99,7 +97,7 @@ rtl::OString RscTypCont::ChangeLanguage(const rtl::OString& rNewLang) for (::std::vector< OUString >::const_iterator it( aFallbacks.begin()); it != aFallbacks.end(); ++it) { - rtl::OString aLang( OUStringToOString( *it, RTL_TEXTENCODING_ASCII_US)); + OString aLang( OUStringToOString( *it, RTL_TEXTENCODING_ASCII_US)); sal_uInt32 nID = GetLangId( aLang ); bool bAdd = (nID == 0); if ( bAdd ) diff --git a/rsc/source/parser/rscibas.cxx b/rsc/source/parser/rscibas.cxx index 7ff0487fa105..ddbdd870875f 100644 --- a/rsc/source/parser/rscibas.cxx +++ b/rsc/source/parser/rscibas.cxx @@ -60,10 +60,10 @@ void RscTypCont::SETCONST( RscConst * pClass, Atom nName, sal_uInt32 nVal ) } -typedef boost::unordered_map< rtl::OString, sal_uInt32, rtl::OStringHash > langmap; +typedef boost::unordered_map< OString, sal_uInt32, OStringHash > langmap; static langmap ULong_Iso_map; -sal_uInt32 GetLangId(const rtl::OString &rLang) +sal_uInt32 GetLangId(const OString &rLang) { langmap::iterator pIter = ULong_Iso_map.find( rLang ); if ( pIter != ULong_Iso_map.end()) @@ -114,10 +114,10 @@ void RscLangEnum::Init( RscNameTable& rNames ) SetConstant( rNames.Put( "x-comment", CONSTNAME, mnLangId ), mnLangId ); mnLangId++; - rtl::OString aEnvIsoTokens = getenv( "RSC_LANG_ISO" ); + OString aEnvIsoTokens = getenv( "RSC_LANG_ISO" ); if ( !aEnvIsoTokens.isEmpty() ) { - rtl::OString aIsoToken; + OString aIsoToken; sal_uInt16 nTokenCounter = 0; sal_Bool bOneMore = 1; while ( bOneMore ) @@ -151,7 +151,7 @@ Atom RscLangEnum::AddLanguage( const char* pLang, RscNameTable& rNames ) { SetConstant( nResult = rNames.Put( pLang, CONSTNAME, mnLangId ), mnLangId ); // insert new lang to ULong_Iso_map - rtl::OString aLang( pLang ); + OString aLang( pLang ); bAdd = (GetLangId( aLang ) == 0); if ( bAdd ) ULong_Iso_map[ aLang ] = mnLangId; diff --git a/rsc/source/parser/rscicpx.cxx b/rsc/source/parser/rscicpx.cxx index d302deef625e..e27830901761 100644 --- a/rsc/source/parser/rscicpx.cxx +++ b/rsc/source/parser/rscicpx.cxx @@ -33,7 +33,7 @@ #include <rsclex.hxx> #include <rscyacc.hxx> -void RscTypCont::InsWinBit( RscTop * pClass, const rtl::OString& rName, +void RscTypCont::InsWinBit( RscTop * pClass, const OString& rName, Atom nVal ) { RscClient * pClient; diff --git a/rsc/source/parser/rsclex.cxx b/rsc/source/parser/rsclex.cxx index fcf0733670f4..3f795ea7eba7 100644 --- a/rsc/source/parser/rsclex.cxx +++ b/rsc/source/parser/rsclex.cxx @@ -39,9 +39,6 @@ #include <rtl/textcvt.h> #include <rtl/textenc.h> -using ::rtl::OString; -using ::rtl::OStringBuffer; -using ::rtl::OStringHash; const char* StringContainer::putString( const char* pString ) { @@ -368,7 +365,7 @@ void IncludeParser( RscFileInst * pFileInst ) } else if( INCLUDE_STRING == nToken ){ lKey = pTypCon->aFileTab.NewIncFile( aYYSType.string, - rtl::OString() ); + OString() ); pFName->InsertDependFile( lKey, ULONG_MAX ); }; }; diff --git a/rsc/source/prj/start.cxx b/rsc/source/prj/start.cxx index acf83dbf8840..f15472cff148 100644 --- a/rsc/source/prj/start.cxx +++ b/rsc/source/prj/start.cxx @@ -46,8 +46,8 @@ extern "C" } int rsc2_main(int, char**); -static sal_Bool CallPrePro( const rtl::OString& rInput, - const rtl::OString& rOutput, RscPtrPtr * pCmdLine, +static sal_Bool CallPrePro( const OString& rInput, + const OString& rOutput, RscPtrPtr * pCmdLine, sal_Bool bResponse ) { RscPtrPtr aNewCmdL; // Kommandozeile @@ -55,7 +55,7 @@ static sal_Bool CallPrePro( const rtl::OString& rInput, RscPtrPtr * pCmdL = &aNewCmdL; int i, nRet; FILE* fRspFile = NULL; - rtl::OString aRspFileName; + OString aRspFileName; if( bResponse ) { @@ -101,7 +101,7 @@ static sal_Bool CallPrePro( const rtl::OString& rInput, if( fRspFile ) { aRespCmdL.Append( rsc_strdup( "rscpp" ) ); - rtl::OStringBuffer aTmpStr; + OStringBuffer aTmpStr; aTmpStr.append('@').append(aRspFileName); aRespCmdL.Append( rsc_strdup( aTmpStr.getStr() ) ); aRespCmdL.Append( (void *)0 ); @@ -143,10 +143,10 @@ static sal_Bool CallPrePro( const rtl::OString& rInput, static sal_Bool CallRsc2( RscStrList * pInputList, - const rtl::OString &rSrsName, RscPtrPtr * pCmdLine ) + const OString &rSrsName, RscPtrPtr * pCmdLine ) { int nRet; - rtl::OString* pString; + OString* pString; RscVerbosity eVerbosity = RscVerbosityNormal; RscPtrPtr aNewCmdL; @@ -210,15 +210,15 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) sal_Bool bHelp = sal_False; sal_Bool bError = sal_False; sal_Bool bResponse = sal_False; - rtl::OString aSrsName; - rtl::OString aResName; + OString aSrsName; + OString aResName; RscStrList aInputList; RscStrList aTmpList; char * pStr; char ** ppStr; RscPtrPtr aCmdLine; // Kommandozeile sal_uInt32 i; - rtl::OString* pString; + OString* pString; pStr = ::ResponseFile( &aCmdLine, argv, argc ); if( pStr ) @@ -261,7 +261,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) else { // Eingabedatei - aInputList.push_back( new rtl::OString(*ppStr) ); + aInputList.push_back( new OString(*ppStr) ); } ppStr++; i++; @@ -274,7 +274,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) aResName = OutputFile( *aInputList[ 0 ], "res" ); if( ! bSetSrs ) { - aSrsName = rtl::OStringBuffer("-fp=").append(OutputFile(*aInputList[0], "srs")). + aSrsName = OStringBuffer("-fp=").append(OutputFile(*aInputList[0], "srs")). makeStringAndClear(); } }; @@ -283,7 +283,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) bPrePro = sal_False; if( bPrePro && !aInputList.empty() ) { - rtl::OString aTmpName; + OString aTmpName; for ( size_t k = 0, n = aInputList.size(); k < n; ++k ) { @@ -295,7 +295,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) bError = sal_True; break; } - aTmpList.push_back( new rtl::OString(aTmpName) ); + aTmpList.push_back( new OString(aTmpName) ); }; }; diff --git a/rsc/source/res/rscall.cxx b/rsc/source/res/rscall.cxx index ebd237913b67..a3d0df50d651 100644 --- a/rsc/source/res/rscall.cxx +++ b/rsc/source/res/rscall.cxx @@ -36,16 +36,16 @@ Atom nRsc_EXTRADATA = InvalidAtom; void InitRscCompiler() { - pStdParType = new rtl::OString(RTL_CONSTASCII_STRINGPARAM( + pStdParType = new OString(RTL_CONSTASCII_STRINGPARAM( "( const ResId & rResId, sal_Bool")); - pStdPar1 = new rtl::OString('('); - pStdPar2 = new rtl::OString('('); + pStdPar1 = new OString('('); + pStdPar2 = new OString('('); - pWinParType = new rtl::OString(RTL_CONSTASCII_STRINGPARAM( + pWinParType = new OString(RTL_CONSTASCII_STRINGPARAM( "( Window * pParent, const ResId & rResId, sal_Bool")); - pWinPar1 = new rtl::OString(RTL_CONSTASCII_STRINGPARAM( + pWinPar1 = new OString(RTL_CONSTASCII_STRINGPARAM( "( pParent,")); - pWinPar2 = new rtl::OString(RTL_CONSTASCII_STRINGPARAM( + pWinPar2 = new OString(RTL_CONSTASCII_STRINGPARAM( "( this,")); nRefDeep = 10; nRsc_XYMAPMODEId = InvalidAtom; diff --git a/rsc/source/res/rscmgr.cxx b/rsc/source/res/rscmgr.cxx index 9f3642aa1f1a..3058e01c4c20 100644 --- a/rsc/source/res/rscmgr.cxx +++ b/rsc/source/res/rscmgr.cxx @@ -165,7 +165,7 @@ ERRTYPE RscMgr::WriteRcHeader( const RSCINST & rInst, RscWriteRc & rMem, GetObjNode( pClassData->aRefId ); if( !pObjNode && pTC ) { - rtl::OStringBuffer aMsg(pHS->getString(rInst.pClass->GetId())); + OStringBuffer aMsg(pHS->getString(rInst.pClass->GetId())); aMsg.append(' ').append(pClassData->aRefId.GetName()); aError = WRN_MGR_REFNOTFOUND; pTC->pEH->Error(aError, rInst.pClass, rId, aMsg.getStr()); diff --git a/rsc/source/res/rscstr.cxx b/rsc/source/res/rscstr.cxx index c0a05607ccee..79cf3605b502 100644 --- a/rsc/source/res/rscstr.cxx +++ b/rsc/source/res/rscstr.cxx @@ -234,7 +234,7 @@ ERRTYPE RscString::WriteRc( const RSCINST & rInst, RscWriteRc & rMem, { if( pTC ) { - rtl::OStringBuffer aMsg(pHS->getString( + OStringBuffer aMsg(pHS->getString( pRefClass->GetId())); aMsg.append(' ').append(aId.GetName()); aError = WRN_STR_REFNOTFOUND; diff --git a/rsc/source/res/rsctop.cxx b/rsc/source/res/rsctop.cxx index 454a4abdd6de..e8ac3fc8b5df 100644 --- a/rsc/source/res/rsctop.cxx +++ b/rsc/source/res/rsctop.cxx @@ -35,8 +35,8 @@ RscTop::RscTop( Atom nId, sal_uInt32 nTypIdent, RscTop * pSuperCl ) pSuperClass->aCallParType ); } -void RscTop::SetCallPar(const rtl::OString& rPar1, const rtl::OString& rPar2, - const rtl::OString& rParType) +void RscTop::SetCallPar(const OString& rPar1, const OString& rPar2, + const OString& rParType) { aCallPar1 = rPar1; aCallPar2 = rPar2; diff --git a/rsc/source/rsc/rsc.cxx b/rsc/source/rsc/rsc.cxx index 75377960b7ae..0ef48b6cd26a 100644 --- a/rsc/source/rsc/rsc.cxx +++ b/rsc/source/rsc/rsc.cxx @@ -57,12 +57,12 @@ using comphelper::string::getToken; using comphelper::string::getTokenCount; -rtl::OString* pStdParType = NULL; -rtl::OString* pStdPar1 = NULL; -rtl::OString* pStdPar2 = NULL; -rtl::OString* pWinParType = NULL; -rtl::OString* pWinPar1 = NULL; -rtl::OString* pWinPar2 = NULL; +OString* pStdParType = NULL; +OString* pStdPar1 = NULL; +OString* pStdPar2 = NULL; +OString* pWinParType = NULL; +OString* pWinPar1 = NULL; +OString* pWinPar2 = NULL; sal_uInt32 nRefDeep = 10; AtomContainer* pHS = NULL; @@ -154,7 +154,7 @@ RscCmdLine::RscCmdLine( int argc, char ** argv, RscError * pEH ) else if( !rsc_strnicmp( (*ppStr) + 1, "i", 1 ) ) { // define include path nCommands |= INCLUDE_FLAG; - rtl::OStringBuffer aBuffer(aPath); + OStringBuffer aBuffer(aPath); if (aBuffer.getLength()) aBuffer.append(SAL_PATHSEPARATOR); aBuffer.append((*ppStr) + 2); @@ -168,13 +168,13 @@ RscCmdLine::RscCmdLine( int argc, char ** argv, RscError * pEH ) } else if( !rsc_strnicmp( (*ppStr) + 1, "lip=", 4 ) ) { // additional language specific include for system dependent files - const rtl::OString aSysSearchDir( (*ppStr)+5 ); + const OString aSysSearchDir( (*ppStr)+5 ); // ignore empty -lip= arguments that we get lots of these days if (!aSysSearchDir.isEmpty()) { m_aOutputFiles.back().aSysSearchDirs.push_back(aSysSearchDir); - rtl::OString aLangSearchPath = m_aOutputFiles.back().aLangSearchPath; + OString aLangSearchPath = m_aOutputFiles.back().aLangSearchPath; if( !aLangSearchPath.isEmpty() ) { aLangSearchPath = aLangSearchPath + OString( SAL_PATHSEPARATOR ); @@ -203,13 +203,13 @@ RscCmdLine::RscCmdLine( int argc, char ** argv, RscError * pEH ) } else if( !rsc_stricmp( (*ppStr) + 1, "lg" ) ) { - m_aOutputFiles.back().aLangName = rtl::OString(); + m_aOutputFiles.back().aLangName = OString(); } else if( !rsc_strnicmp( (*ppStr) + 1, "lg", 2 ) ) { if( !m_aOutputFiles.back().aLangName.isEmpty() ) m_aOutputFiles.push_back( OutputFile() ); - m_aOutputFiles.back().aLangName = rtl::OString((*ppStr)+3); + m_aOutputFiles.back().aLangName = OString((*ppStr)+3); } else pEH->FatalError( ERR_UNKNOWNSW, RscId(), *ppStr ); @@ -217,7 +217,7 @@ RscCmdLine::RscCmdLine( int argc, char ** argv, RscError * pEH ) else { // Eingabedatei - aInputList.push_back( new rtl::OString(*ppStr) ); + aInputList.push_back( new OString(*ppStr) ); } ppStr++; i++; @@ -630,12 +630,12 @@ ERRTYPE RscCompiler::Link() pTC->ChangeLanguage( it->aLangName ); pTC->SetSourceCharSet( RTL_TEXTENCODING_UTF8 ); pTC->ClearSysNames(); - rtl::OStringBuffer aSysSearchPath(it->aLangSearchPath); + OStringBuffer aSysSearchPath(it->aLangSearchPath); sal_Int32 nIndex = 0; - rtl::OString aSearchPath = pTC->GetSearchPath(); + OString aSearchPath = pTC->GetSearchPath(); do { - rtl::OString aToken = aSearchPath.getToken( 0, cSearchDelim, nIndex ); + OString aToken = aSearchPath.getToken( 0, cSearchDelim, nIndex ); if (aSysSearchPath.getLength()) aSysSearchPath.append(cSearchDelim); aSysSearchPath.append(aToken); @@ -735,12 +735,12 @@ ERRTYPE RscCompiler::Link() return( aError ); } -void RscCompiler::Append( const rtl::OString& rOutputSrs, - const rtl::OString& rTmpFile ) +void RscCompiler::Append( const OString& rOutputSrs, + const OString& rTmpFile ) { if( !::Append( rOutputSrs, rTmpFile ) ) { - rtl::OStringBuffer aTemp(rOutputSrs); + OStringBuffer aTemp(rOutputSrs); aTemp.append(" or ").append(rTmpFile); pTC->pEH->FatalError( ERR_OPENFILE, RscId(), aTemp.getStr() ); } @@ -748,21 +748,21 @@ void RscCompiler::Append( const rtl::OString& rOutputSrs, bool RscCompiler::GetImageFilePath( const RscCmdLine::OutputFile& rOutputFile, const WriteRcContext& rContext, - const rtl::OString& rBaseFileName, - rtl::OString& rImagePath, + const OString& rBaseFileName, + OString& rImagePath, FILE* pSysListFile ) { - ::std::list< rtl::OString > aFileNames; + ::std::list< OString > aFileNames; bool bFound = false; - aFileNames.push_back( rBaseFileName + rtl::OString(".png") ); - aFileNames.push_back( rBaseFileName + rtl::OString(".bmp") ); + aFileNames.push_back( rBaseFileName + OString(".png") ); + aFileNames.push_back( rBaseFileName + OString(".bmp") ); - ::std::list< rtl::OString >::iterator aFileIter( aFileNames.begin() ); + ::std::list< OString >::iterator aFileIter( aFileNames.begin() ); while( ( aFileIter != aFileNames.end() ) && !bFound ) { - ::std::list< rtl::OString >::const_iterator aDirIter( rOutputFile.aSysSearchDirs.begin() ); + ::std::list< OString >::const_iterator aDirIter( rOutputFile.aSysSearchDirs.begin() ); while( ( aDirIter != rOutputFile.aSysSearchDirs.end() ) && !bFound ) { @@ -791,8 +791,8 @@ bool RscCompiler::GetImageFilePath( const RscCmdLine::OutputFile& rOutputFile, while( ( aReplIter != rContext.pCmdLine->m_aReplacements.end() ) && !bFound ) { - rtl::OString aSearch(aReplIter->second.toAsciiLowerCase()); - rtl::OString aSearchIn(aRelPathStr.toAsciiLowerCase()); + OString aSearch(aReplIter->second.toAsciiLowerCase()); + OString aSearchIn(aRelPathStr.toAsciiLowerCase()); if( aSearchIn.indexOf(aSearch) == 0 ) { sal_Int32 nCopyPos = aReplIter->second.getLength(), nLength = aRelPathStr.getLength(); @@ -838,24 +838,24 @@ void RscCompiler::PreprocessSrsFile( const RscCmdLine::OutputFile& rOutputFile, { SvFileStream aIStm( rSrsInPath, STREAM_READ ); SvFileStream aOStm( rSrsOutPath, STREAM_WRITE | STREAM_TRUNC ); - ::std::vector< rtl::OString > aMissingImages; + ::std::vector< OString > aMissingImages; FILE* pSysListFile = rContext.aOutputSysList.isEmpty() ? NULL : fopen( rContext.aOutputSysList.getStr(), "ab" ); if( !aIStm.GetError() && !aOStm.GetError() ) { - rtl::OString aLine; - rtl::OString aFilePath; + OString aLine; + OString aFilePath; while( aIStm.ReadLine( aLine ) ) { if( ( getTokenCount(aLine, '=') == 2 ) && ( getToken(aLine, 0, '=').indexOf("File") != -1 ) ) { - rtl::OString aBaseFileName( getToken(getToken(aLine, 1, '"'), 0, '.') ); + OString aBaseFileName( getToken(getToken(aLine, 1, '"'), 0, '.') ); if( GetImageFilePath( rOutputFile, rContext, aBaseFileName, aFilePath, pSysListFile ) ) { - aLine = rtl::OStringBuffer(RTL_CONSTASCII_STRINGPARAM("File = \"")). + aLine = OStringBuffer(RTL_CONSTASCII_STRINGPARAM("File = \"")). append(aFilePath).append(RTL_CONSTASCII_STRINGPARAM("\";")). makeStringAndClear(); } @@ -866,7 +866,7 @@ void RscCompiler::PreprocessSrsFile( const RscCmdLine::OutputFile& rOutputFile, } else if (aLine.indexOfL(RTL_CONSTASCII_STRINGPARAM("ImageList")) != -1) { - ::std::vector< ::std::pair< rtl::OString, sal_Int32 > > aEntryVector; + ::std::vector< ::std::pair< OString, sal_Int32 > > aEntryVector; aOStm.WriteLine(aLine); @@ -881,7 +881,7 @@ void RscCompiler::PreprocessSrsFile( const RscCmdLine::OutputFile& rOutputFile, } while (aLine.indexOfL(RTL_CONSTASCII_STRINGPARAM("Prefix")) == -1); - const rtl::OString aPrefix( getToken(aLine, 1, '"') ); + const OString aPrefix( getToken(aLine, 1, '"') ); aIStm.Seek( nImgListStartPos ); do @@ -905,14 +905,14 @@ void RscCompiler::PreprocessSrsFile( const RscCmdLine::OutputFile& rOutputFile, { sal_Int32 nNumber = atoi(aLine.getStr()); - rtl::OStringBuffer aBuf(aPrefix); + OStringBuffer aBuf(aPrefix); if( nNumber < 10000 ) aBuf.append('0'); aBuf.append(aLine); - rtl::OString aBaseFileName = aBuf.makeStringAndClear(); + OString aBaseFileName = aBuf.makeStringAndClear(); if( GetImageFilePath( rOutputFile, rContext, aBaseFileName, aFilePath, pSysListFile ) ) - aEntryVector.push_back( ::std::pair< rtl::OString, sal_Int32 >( aFilePath, nNumber ) ); + aEntryVector.push_back( ::std::pair< OString, sal_Int32 >( aFilePath, nNumber ) ); else aMissingImages.push_back( aBaseFileName ); } @@ -933,11 +933,11 @@ void RscCompiler::PreprocessSrsFile( const RscCmdLine::OutputFile& rOutputFile, aOStm.WriteLine(aLine); } - aOStm.WriteLine(rtl::OString(RTL_CONSTASCII_STRINGPARAM("FileList = {"))); + aOStm.WriteLine(OString(RTL_CONSTASCII_STRINGPARAM("FileList = {"))); for( sal_uInt32 i = 0; i < aEntryVector.size(); ++i ) { - rtl::OStringBuffer aEntryString( + OStringBuffer aEntryString( RTL_CONSTASCII_STRINGPARAM("< \"")); aEntryString.append(aEntryVector[i].first); @@ -948,7 +948,7 @@ void RscCompiler::PreprocessSrsFile( const RscCmdLine::OutputFile& rOutputFile, aOStm.WriteLine(aEntryString.makeStringAndClear()); } - aOStm.WriteLine(rtl::OString(RTL_CONSTASCII_STRINGPARAM("};"))); + aOStm.WriteLine(OString(RTL_CONSTASCII_STRINGPARAM("};"))); } else aOStm.WriteLine(aLine); @@ -960,7 +960,7 @@ void RscCompiler::PreprocessSrsFile( const RscCmdLine::OutputFile& rOutputFile, if( aMissingImages.size() > 0 ) { - rtl::OStringBuffer aImagesStr; + OStringBuffer aImagesStr; for( sal_uInt32 i = 0; i < aMissingImages.size(); ++i ) { diff --git a/rsc/source/tools/rscdef.cxx b/rsc/source/tools/rscdef.cxx index 04a5dcd7e8fd..d888a3e9b7ff 100644 --- a/rsc/source/tools/rscdef.cxx +++ b/rsc/source/tools/rscdef.cxx @@ -92,9 +92,9 @@ RscId::operator sal_Int32() const return( GetNumber() ); } -rtl::OString RscId::GetName() const +OString RscId::GetName() const { - rtl::OStringBuffer aStr; + OStringBuffer aStr; if ( !aExp.IsNothing() ) { @@ -107,7 +107,7 @@ rtl::OString RscId::GetName() const return aStr.makeStringAndClear(); } -RscDefine::RscDefine( sal_uLong lKey, const rtl::OString& rDefName, sal_Int32 lDefId ) +RscDefine::RscDefine( sal_uLong lKey, const OString& rDefName, sal_Int32 lDefId ) : StringNode( rDefName ) { nRefCount = 0; @@ -116,7 +116,7 @@ RscDefine::RscDefine( sal_uLong lKey, const rtl::OString& rDefName, sal_Int32 lD pExp = NULL; } -RscDefine::RscDefine( sal_uLong lKey, const rtl::OString& rDefName, +RscDefine::RscDefine( sal_uLong lKey, const OString& rDefName, RscExpression * pExpression ) : StringNode( rDefName ) { @@ -145,7 +145,7 @@ void RscDefine::DefineToNumber() if( pExp ) delete pExp; pExp = NULL; - SetName(rtl::OString::valueOf(lId)); + SetName(OString::valueOf(lId)); } sal_Bool RscDefine::Evaluate(){ @@ -161,14 +161,14 @@ RscDefine * RscDefine::Search( const char * pStr ){ return (RscDefine *)StringNode::Search( pStr ); } -rtl::OString RscDefine::GetMacro() +OString RscDefine::GetMacro() { if( pExp ) return pExp->GetMacro(); - return rtl::OString::valueOf(lId); + return OString::valueOf(lId); } -RscDefine * RscDefineList::New( sal_uLong lFileKey, const rtl::OString& rDefName, +RscDefine * RscDefineList::New( sal_uLong lFileKey, const OString& rDefName, sal_Int32 lDefId, size_t lPos ) { RscDefine * pDef; @@ -186,7 +186,7 @@ RscDefine * RscDefineList::New( sal_uLong lFileKey, const rtl::OString& rDefName return pDef; } -RscDefine * RscDefineList::New( sal_uLong lFileKey, const rtl::OString& rDefName, +RscDefine * RscDefineList::New( sal_uLong lFileKey, const OString& rDefName, RscExpression * pExpression, size_t lPos ) { RscDefine * pDef; @@ -241,7 +241,7 @@ sal_Bool RscExpType::Evaluate( sal_Int32 * plValue ) const{ return sal_True; } -void RscExpType::AppendMacro(rtl::OStringBuffer& rStr) const +void RscExpType::AppendMacro(OStringBuffer& rStr) const { if( IsDefinition() ) rStr.append(aExp.pDef->GetName()); @@ -305,9 +305,9 @@ sal_Bool RscExpression::Evaluate( sal_Int32 * plValue ){ return sal_False; } -rtl::OString RscExpression::GetMacro() +OString RscExpression::GetMacro() { - rtl::OStringBuffer aLeft; + OStringBuffer aLeft; // Ausgabeoptimierung if( aLeftExp.IsNothing() ) @@ -458,7 +458,7 @@ RscFileTab :: ~RscFileTab(){ }; } -sal_uLong RscFileTab :: Find( const rtl::OString& rName ) +sal_uLong RscFileTab :: Find( const OString& rName ) { sal_uIntPtr aIndex = FirstIndex(); while( aIndex != UNIQUEINDEX_ENTRY_NOTFOUND && (Get(aIndex)->aFileName != rName) ) @@ -533,7 +533,7 @@ sal_Bool RscFileTab::TestDef( sal_uLong lFileKey, size_t lPos, return sal_True; } -RscDefine * RscFileTab::NewDef( sal_uLong lFileKey, const rtl::OString& rDefName, +RscDefine * RscFileTab::NewDef( sal_uLong lFileKey, const OString& rDefName, sal_Int32 lId, sal_uLong lPos ) { RscDefine * pDef = FindDef( rDefName ); @@ -552,7 +552,7 @@ RscDefine * RscFileTab::NewDef( sal_uLong lFileKey, const rtl::OString& rDefName return( pDef ); } -RscDefine * RscFileTab::NewDef( sal_uLong lFileKey, const rtl::OString& rDefName, +RscDefine * RscFileTab::NewDef( sal_uLong lFileKey, const OString& rDefName, RscExpression * pExp, sal_uLong lPos ) { RscDefine * pDef = FindDef( rDefName ); @@ -594,7 +594,7 @@ void RscFileTab :: DeleteFileContext( sal_uLong lFileKey ){ } } -sal_uLong RscFileTab :: NewCodeFile( const rtl::OString& rName ) +sal_uLong RscFileTab :: NewCodeFile( const OString& rName ) { sal_uLong lKey = Find( rName ); if( UNIQUEINDEX_ENTRY_NOTFOUND == lKey ) @@ -608,8 +608,8 @@ sal_uLong RscFileTab :: NewCodeFile( const rtl::OString& rName ) return lKey; } -sal_uLong RscFileTab :: NewIncFile(const rtl::OString& rName, - const rtl::OString& rPath) +sal_uLong RscFileTab :: NewIncFile(const OString& rName, + const OString& rPath) { sal_uLong lKey = Find( rName ); if( UNIQUEINDEX_ENTRY_NOTFOUND == lKey ) diff --git a/rsc/source/tools/rschash.cxx b/rsc/source/tools/rschash.cxx index ac684f3b0f77..652b804bcdb6 100644 --- a/rsc/source/tools/rschash.cxx +++ b/rsc/source/tools/rschash.cxx @@ -19,8 +19,6 @@ #include <rschash.hxx> -using ::rtl::OString; -using ::rtl::OStringHash; AtomContainer::AtomContainer() { diff --git a/rsc/source/tools/rsctools.cxx b/rsc/source/tools/rsctools.cxx index 8131826b595a..1310a915b6fc 100644 --- a/rsc/source/tools/rsctools.cxx +++ b/rsc/source/tools/rsctools.cxx @@ -78,7 +78,7 @@ char* rsc_strdup( const char* pStr ) return pBuffer; } -rtl::OString GetTmpFileName() +OString GetTmpFileName() { OUString aTmpURL, aTmpFile; osl_createTempFile( NULL, NULL, &aTmpURL.pData ); @@ -86,7 +86,7 @@ rtl::OString GetTmpFileName() return OUStringToOString( aTmpFile, RTL_TEXTENCODING_MS_1252 ); } -sal_Bool Append(FILE * fDest, const rtl::OString &rTmpFile) +sal_Bool Append(FILE * fDest, const OString &rTmpFile) { #define MAX_BUF 4096 FILE *fSource = fopen(rTmpFile.getStr(), "rb"); @@ -112,7 +112,7 @@ sal_Bool Append(FILE * fDest, const rtl::OString &rTmpFile) return bSuccess; } -sal_Bool Append(const rtl::OString &rOutputSrs, const rtl::OString &rTmpFile) +sal_Bool Append(const OString &rOutputSrs, const OString &rTmpFile) { FILE * fDest = fopen(rOutputSrs.getStr(), "ab"); @@ -125,7 +125,7 @@ sal_Bool Append(const rtl::OString &rOutputSrs, const rtl::OString &rTmpFile) } /* replaces extension of a file name */ -rtl::OString OutputFile(const rtl::OString &rInput, const char * pExt) +OString OutputFile(const OString &rInput, const char * pExt) { sal_Int32 nSepInd = rInput.lastIndexOf("."); |