sal_Char->char in forms..framework
Change-Id: I756c1f54d50403aa9b4f03dbbc2a387556f07084 Reviewed-on: https://gerrit.libreoffice.org/85475 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
@@ -933,7 +933,7 @@ void ODatabaseForm::InsertTextPart( INetMIMEMessage& rParent, const OUString& rN
|
||||
pChild->SetContentDisposition(aContentDisp);
|
||||
|
||||
rtl_TextEncoding eSystemEncoding = osl_getThreadTextEncoding();
|
||||
const sal_Char* pBestMatchingEncoding = rtl_getBestMimeCharsetFromTextEncoding( eSystemEncoding );
|
||||
const char* pBestMatchingEncoding = rtl_getBestMimeCharsetFromTextEncoding( eSystemEncoding );
|
||||
OUString aBestMatchingEncoding = OUString::createFromAscii(pBestMatchingEncoding);
|
||||
pChild->SetContentType(
|
||||
"text/plain; charset=\"" + aBestMatchingEncoding + "\"");
|
||||
|
@@ -135,7 +135,7 @@ namespace frm
|
||||
}
|
||||
|
||||
|
||||
Reference< XDispatch > ControlFeatureInterception::queryDispatch( const sal_Char* _pAsciiURL )
|
||||
Reference< XDispatch > ControlFeatureInterception::queryDispatch( const char* _pAsciiURL )
|
||||
{
|
||||
return queryDispatch( m_pUrlTransformer->getStrictURLFromAscii( _pAsciiURL ) );
|
||||
}
|
||||
|
@@ -264,7 +264,7 @@ namespace frm
|
||||
}
|
||||
|
||||
|
||||
void OFormNavigationHelper::dispatchWithArgument( sal_Int16 _nFeatureId, const sal_Char* _pParamAsciiName,
|
||||
void OFormNavigationHelper::dispatchWithArgument( sal_Int16 _nFeatureId, const char* _pParamAsciiName,
|
||||
const Any& _rParamValue ) const
|
||||
{
|
||||
FeatureMap::const_iterator aInfo = m_aSupportedFeatures.find( _nFeatureId );
|
||||
@@ -377,9 +377,9 @@ namespace frm
|
||||
struct FeatureURL
|
||||
{
|
||||
const sal_Int16 nFormFeature;
|
||||
const sal_Char* pAsciiURL;
|
||||
const char* pAsciiURL;
|
||||
|
||||
FeatureURL( const sal_Int16 _nFormFeature, const sal_Char* _pAsciiURL )
|
||||
FeatureURL( const sal_Int16 _nFormFeature, const char* _pAsciiURL )
|
||||
:nFormFeature( _nFormFeature )
|
||||
,pAsciiURL( _pAsciiURL )
|
||||
{
|
||||
|
@@ -65,13 +65,13 @@ namespace frm
|
||||
}
|
||||
|
||||
|
||||
URL UrlTransformer::getStrictURLFromAscii( const sal_Char* _pAsciiURL ) const
|
||||
URL UrlTransformer::getStrictURLFromAscii( const char* _pAsciiURL ) const
|
||||
{
|
||||
return getStrictURL( OUString::createFromAscii( _pAsciiURL ) );
|
||||
}
|
||||
|
||||
|
||||
void UrlTransformer::parseSmartWithAsciiProtocol( css::util::URL& _rURL, const sal_Char* _pAsciiURL ) const
|
||||
void UrlTransformer::parseSmartWithAsciiProtocol( css::util::URL& _rURL, const char* _pAsciiURL ) const
|
||||
{
|
||||
if ( implEnsureTransformer() )
|
||||
m_xTransformer->parseSmart( _rURL, OUString::createFromAscii( _pAsciiURL ) );
|
||||
|
@@ -77,7 +77,7 @@ namespace frm
|
||||
with a blank target frame and no frame search flags
|
||||
*/
|
||||
css::uno::Reference< css::frame::XDispatch >
|
||||
queryDispatch( const sal_Char* _pAsciiURL );
|
||||
queryDispatch( const char* _pAsciiURL );
|
||||
};
|
||||
|
||||
|
||||
|
@@ -49,7 +49,7 @@ namespace frm
|
||||
*/
|
||||
virtual void dispatchWithArgument(
|
||||
sal_Int16 _nFeatureId,
|
||||
const sal_Char* _pParamName,
|
||||
const char* _pParamName,
|
||||
const css::uno::Any& _rParamValue
|
||||
) const = 0;
|
||||
|
||||
|
@@ -93,7 +93,7 @@ namespace frm
|
||||
|
||||
// IFeatureDispatcher
|
||||
virtual void dispatch( sal_Int16 _nFeatureId ) const override;
|
||||
virtual void dispatchWithArgument( sal_Int16 _nFeatureId, const sal_Char* _pParamName, const css::uno::Any& _rParamValue ) const override;
|
||||
virtual void dispatchWithArgument( sal_Int16 _nFeatureId, const char* _pParamName, const css::uno::Any& _rParamValue ) const override;
|
||||
virtual bool isEnabled( sal_Int16 _nFeatureId ) const override;
|
||||
virtual bool getBooleanState( sal_Int16 _nFeatureId ) const override;
|
||||
virtual OUString getStringState( sal_Int16 _nFeatureId ) const override;
|
||||
|
@@ -49,12 +49,12 @@ namespace frm
|
||||
/** returns a URL object for the given URL ASCII string
|
||||
*/
|
||||
css::util::URL
|
||||
getStrictURLFromAscii( const sal_Char* _pAsciiURL ) const;
|
||||
getStrictURLFromAscii( const char* _pAsciiURL ) const;
|
||||
|
||||
/** parses a given URL smartly, with a protocol given by ASCII string
|
||||
*/
|
||||
void
|
||||
parseSmartWithAsciiProtocol( css::util::URL& _rURL, const sal_Char* _pAsciiURL ) const;
|
||||
parseSmartWithAsciiProtocol( css::util::URL& _rURL, const char* _pAsciiURL ) const;
|
||||
|
||||
private:
|
||||
/** ensures that we have a URLTransformer instance in <member>m_xTransformer</member>
|
||||
|
@@ -80,9 +80,9 @@ namespace frm
|
||||
|
||||
struct FormatEntry
|
||||
{
|
||||
const sal_Char* pDescription;
|
||||
sal_Int32 nKey;
|
||||
LocaleType eLocale;
|
||||
const char* pDescription;
|
||||
sal_Int32 nKey;
|
||||
LocaleType eLocale;
|
||||
};
|
||||
|
||||
}
|
||||
|
@@ -224,9 +224,9 @@ namespace frm
|
||||
bool bLoad = KEY_F11 == nCode;
|
||||
static struct
|
||||
{
|
||||
const sal_Char* pDescription;
|
||||
const sal_Char* pExtension;
|
||||
EETextFormat eFormat;
|
||||
const char* pDescription;
|
||||
const char* pExtension;
|
||||
EETextFormat eFormat;
|
||||
} const aExportFormats[] =
|
||||
{
|
||||
{ "OASIS OpenDocument (*.xml)", "*.xml", EETextFormat::Xml },
|
||||
|
@@ -63,7 +63,7 @@ namespace frm
|
||||
|
||||
OUString lcl_getCommandURL( const sal_Int16 _nFormFeature )
|
||||
{
|
||||
const sal_Char* pAsciiCommandName = nullptr;
|
||||
const char* pAsciiCommandName = nullptr;
|
||||
switch ( _nFormFeature )
|
||||
{
|
||||
case FormFeature::MoveAbsolute : pAsciiCommandName = "AbsoluteRecord"; break;
|
||||
|
@@ -69,7 +69,7 @@ void ComputedExpression::setExpression( const OUString& rExpression )
|
||||
}
|
||||
|
||||
|
||||
bool ComputedExpression::_checkExpression( const sal_Char* pExpression ) const
|
||||
bool ComputedExpression::_checkExpression( const char* pExpression ) const
|
||||
{
|
||||
assert(pExpression && "no expression?");
|
||||
|
||||
|
@@ -62,7 +62,7 @@ protected:
|
||||
|
||||
|
||||
/// implementation of isSimpleExpression
|
||||
bool _checkExpression( const sal_Char* pExpression ) const;
|
||||
bool _checkExpression( const char* pExpression ) const;
|
||||
|
||||
/// allow manipulation of the expression before it is evaluated
|
||||
// the default implementation is to do nothing...
|
||||
|
@@ -51,7 +51,7 @@ CSerializationURLEncoded::CSerializationURLEncoded()
|
||||
mark = "-" | "_" | "." | "!" | "~" | "*" | "'" | "(" | ")"
|
||||
unreserved = alphanum | mark
|
||||
*/
|
||||
bool CSerializationURLEncoded::is_unreserved(sal_Char c)
|
||||
bool CSerializationURLEncoded::is_unreserved(char c)
|
||||
{
|
||||
if (rtl::isAsciiAlphanumeric(static_cast<unsigned char>(c)))
|
||||
return true;
|
||||
@@ -73,7 +73,7 @@ void CSerializationURLEncoded::encode_and_append(const OUString& aString, OStri
|
||||
{
|
||||
OString utf8String = OUStringToOString(aString, RTL_TEXTENCODING_UTF8);
|
||||
const sal_uInt8 *pString = reinterpret_cast< const sal_uInt8 * >( utf8String.getStr() );
|
||||
sal_Char tmpChar[4];
|
||||
char tmpChar[4];
|
||||
|
||||
while( *pString != 0)
|
||||
{
|
||||
|
@@ -31,7 +31,7 @@ class CSerializationURLEncoded : public CSerialization
|
||||
private:
|
||||
css::uno::Reference< css::io::XPipe > m_aPipe;
|
||||
|
||||
static bool is_unreserved(sal_Char);
|
||||
static bool is_unreserved(char);
|
||||
static void encode_and_append(const OUString& aString, OStringBuffer& aBuffer);
|
||||
void serialize_node(const css::uno::Reference< css::xml::dom::XNode >& aNode);
|
||||
|
||||
|
@@ -50,7 +50,7 @@ extern "C"
|
||||
{
|
||||
|
||||
SAL_DLLPUBLIC_EXPORT void* fps_aqua_component_getFactory(
|
||||
const sal_Char* pImplName, void* pSrvManager, void* /*pRegistryKey*/ )
|
||||
const char* pImplName, void* pSrvManager, void* /*pRegistryKey*/ )
|
||||
{
|
||||
void* pRet = nullptr;
|
||||
|
||||
|
@@ -53,7 +53,7 @@ namespace svt
|
||||
|
||||
struct ControlDescription
|
||||
{
|
||||
const sal_Char* pControlName;
|
||||
const char* pControlName;
|
||||
sal_Int16 nControlId;
|
||||
PropFlags nPropertyFlags;
|
||||
};
|
||||
@@ -114,7 +114,7 @@ namespace svt
|
||||
|
||||
struct ControlProperty
|
||||
{
|
||||
const sal_Char* pPropertyName;
|
||||
const char* pPropertyName;
|
||||
PropFlags nPropertyId;
|
||||
};
|
||||
|
||||
|
@@ -51,7 +51,7 @@ static const cppu::ImplementationEntry g_entries[] =
|
||||
extern "C"
|
||||
{
|
||||
SAL_DLLPUBLIC_EXPORT void * fps_office_component_getFactory(
|
||||
const sal_Char * pImplementationName, void * pServiceManager, void * pRegistryKey)
|
||||
const char * pImplementationName, void * pServiceManager, void * pRegistryKey)
|
||||
{
|
||||
return cppu::component_getFactoryHelper (
|
||||
pImplementationName, pServiceManager, pRegistryKey, g_entries);
|
||||
|
@@ -262,7 +262,7 @@ namespace
|
||||
/** retrieves the value of an environment variable
|
||||
@return <TRUE/> if and only if the retrieved string value is not empty
|
||||
*/
|
||||
bool getEnvironmentValue( const sal_Char* _pAsciiEnvName, OUString& _rValue )
|
||||
bool getEnvironmentValue( const char* _pAsciiEnvName, OUString& _rValue )
|
||||
{
|
||||
_rValue.clear();
|
||||
OUString sEnvName = OUString::createFromAscii( _pAsciiEnvName );
|
||||
|
@@ -53,7 +53,7 @@ extern "C"
|
||||
{
|
||||
|
||||
SAL_DLLPUBLIC_EXPORT void* fps_win32_component_getFactory(
|
||||
const sal_Char* pImplName, void* pSrvManager, void* )
|
||||
const char* pImplName, void* pSrvManager, void* )
|
||||
{
|
||||
void* pRet = nullptr;
|
||||
|
||||
|
@@ -98,7 +98,7 @@ class JobURL
|
||||
private:
|
||||
|
||||
static bool implst_split( const OUString& sPart ,
|
||||
const sal_Char* pPartIdentifier ,
|
||||
const char* pPartIdentifier ,
|
||||
sal_Int32 nPartLength ,
|
||||
OUString& rPartValue ,
|
||||
OUString& rPartArguments );
|
||||
|
@@ -51,7 +51,7 @@ ________________________________________________________________________________
|
||||
// define method to instantiate new services
|
||||
|
||||
#define COMPONENTGETFACTORY( LIB, IFFACTORIES ) \
|
||||
extern "C" SAL_DLLPUBLIC_EXPORT void* LIB##_component_getFactory( const sal_Char* pImplementationName, \
|
||||
extern "C" SAL_DLLPUBLIC_EXPORT void* LIB##_component_getFactory( const char* pImplementationName, \
|
||||
void* pServiceManager , \
|
||||
void* /*pRegistryKey*/ ) \
|
||||
{ \
|
||||
|
@@ -80,7 +80,7 @@ public:
|
||||
|
||||
protected:
|
||||
UICommandDescription( const css::uno::Reference< css::uno::XComponentContext>& rxContext, bool );
|
||||
void impl_fillElements(const sal_Char* _pName);
|
||||
void impl_fillElements(const char* _pName);
|
||||
|
||||
OUString m_aPrivateResourceURL;
|
||||
css::uno::Reference< css::uno::XComponentContext > m_xContext;
|
||||
|
@@ -213,7 +213,7 @@ bool JobURL::getService( /*OUT*/ OUString& sService ) const
|
||||
<FALSE/> otherwise.
|
||||
*/
|
||||
bool JobURL::implst_split( /*IN*/ const OUString& sPart ,
|
||||
/*IN*/ const sal_Char* pPartIdentifier ,
|
||||
/*IN*/ const char* pPartIdentifier ,
|
||||
/*IN*/ sal_Int32 nPartLength ,
|
||||
/*OUT*/ OUString& rPartValue ,
|
||||
/*OUT*/ OUString& rPartArguments )
|
||||
|
@@ -64,7 +64,7 @@ void MenuBarMerger::RetrieveReferencePath(
|
||||
const OUString& rReferencePathString,
|
||||
::std::vector< OUString >& rReferencePath )
|
||||
{
|
||||
const sal_Char aDelimiter = '\\';
|
||||
const char aDelimiter = '\\';
|
||||
|
||||
rReferencePath.clear();
|
||||
sal_Int32 nIndex( 0 );
|
||||
|
@@ -582,7 +582,7 @@ UICommandDescription::~UICommandDescription()
|
||||
m_aUICommandsHashMap.clear();
|
||||
m_xGenericUICommands.clear();
|
||||
}
|
||||
void UICommandDescription::impl_fillElements(const sal_Char* _pName)
|
||||
void UICommandDescription::impl_fillElements(const char* _pName)
|
||||
{
|
||||
m_xModuleManager.set( ModuleManager::create( m_xContext ) );
|
||||
Sequence< OUString > aElementNames = m_xModuleManager->getElementNames();
|
||||
|
Reference in New Issue
Block a user