Kaydet (Commit) 3e993a51 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:staticmethods: basic

Change-Id: Ic8c8c8ad4470e14d662f478f6b859cd908c9f78c
üst 8a3afbee
......@@ -860,7 +860,7 @@ void SbxValue::Format( OUString& rRes, const OUString* pFmt ) const
}
else
{
rRes = rAppData.pBasicFormater->BasicFormatNull( *pFmt );
rRes = SbxBasicFormater::BasicFormatNull( *pFmt );
}
}
......
......@@ -54,7 +54,7 @@ class BASIC_DLLPUBLIC SbModule : public SbxObject
std::vector< OUString > mModuleVariableNames;
BASIC_DLLPRIVATE void implClearIfVarDependsOnDeletedBasic( SbxVariable* pVar, StarBASIC* pDeletedBasic );
BASIC_DLLPRIVATE static void implClearIfVarDependsOnDeletedBasic( SbxVariable* pVar, StarBASIC* pDeletedBasic );
SbModule(const SbModule&) = delete;
SbModule& operator=(const SbModule&) = delete;
......
......@@ -103,17 +103,17 @@ class BASIC_DLLPUBLIC SbxBasicFormater {
String containing the formatted output
*/
OUString BasicFormat( double dNumber, const OUString& sFormatStrg );
OUString BasicFormatNull( const OUString& sFormatStrg );
static OUString BasicFormatNull( const OUString& sFormatStrg );
static bool isBasicFormat( const OUString& sFormatStrg );
private:
BASIC_DLLPRIVATE inline void ShiftString( OUStringBuffer& sStrg, sal_uInt16 nStartPos );
BASIC_DLLPRIVATE void AppendDigit( OUStringBuffer& sStrg, short nDigit );
BASIC_DLLPRIVATE static inline void ShiftString( OUStringBuffer& sStrg, sal_uInt16 nStartPos );
BASIC_DLLPRIVATE static void AppendDigit( OUStringBuffer& sStrg, short nDigit );
BASIC_DLLPRIVATE void LeftShiftDecimalPoint( OUStringBuffer& sStrg );
BASIC_DLLPRIVATE void StrRoundDigit( OUStringBuffer& sStrg, short nPos, bool& bOverflow );
BASIC_DLLPRIVATE void StrRoundDigit( OUStringBuffer& sStrg, short nPos );
BASIC_DLLPRIVATE void ParseBack( OUStringBuffer& sStrg, const OUString& sFormatStrg,
BASIC_DLLPRIVATE static void ParseBack( OUStringBuffer& sStrg, const OUString& sFormatStrg,
short nFormatPos );
#ifdef with_sprintf_
// Methods for string conversion with sprintf():
......@@ -129,11 +129,11 @@ class BASIC_DLLPUBLIC SbxBasicFormater {
bool& bFoundFirstDigit );
BASIC_DLLPRIVATE short RoundDigit( double dNumber );
#endif
BASIC_DLLPRIVATE OUString GetPosFormatString( const OUString& sFormatStrg, bool & bFound );
BASIC_DLLPRIVATE OUString GetNegFormatString( const OUString& sFormatStrg, bool & bFound );
BASIC_DLLPRIVATE OUString Get0FormatString( const OUString& sFormatStrg, bool & bFound );
BASIC_DLLPRIVATE OUString GetNullFormatString( const OUString& sFormatStrg, bool & bFound );
BASIC_DLLPRIVATE void AnalyseFormatString( const OUString& sFormatStrg,
BASIC_DLLPRIVATE static OUString GetPosFormatString( const OUString& sFormatStrg, bool & bFound );
BASIC_DLLPRIVATE static OUString GetNegFormatString( const OUString& sFormatStrg, bool & bFound );
BASIC_DLLPRIVATE static OUString Get0FormatString( const OUString& sFormatStrg, bool & bFound );
BASIC_DLLPRIVATE static OUString GetNullFormatString( const OUString& sFormatStrg, bool & bFound );
BASIC_DLLPRIVATE static void AnalyseFormatString( const OUString& sFormatStrg,
short& nNoOfDigitsLeft, short& nNoOfDigitsRight,
short& nNoOfOptionalDigitsLeft,
short& nNoOfExponentDigits,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment