Extended loplugin:ostr: Automatic rewrite O[U]StringLiteral: extensions
Change-Id: I30f81bdcd7ba877e65c8f134352669e22d78b033 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158192 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
parent
7eda35a36c
commit
566de3328e
9 changed files with 26 additions and 26 deletions
|
@ -49,7 +49,7 @@ namespace abp
|
|||
|
||||
|
||||
const char16_t sDriverSettingsNodeName[] = u"/org.openoffice.Office.DataAccess/DriverSettings/com.sun.star.comp.sdbc.MozabDriver";
|
||||
constexpr OUStringLiteral sAddressBookNodeName = u"/org.openoffice.Office.DataAccess/AddressBook";
|
||||
constexpr OUString sAddressBookNodeName = u"/org.openoffice.Office.DataAccess/AddressBook"_ustr;
|
||||
|
||||
namespace fieldmapping
|
||||
{
|
||||
|
@ -218,8 +218,8 @@ namespace abp
|
|||
const OUString* pExistentFields = aExistentFields.getConstArray();
|
||||
const OUString* pExistentFieldsEnd = pExistentFields + aExistentFields.getLength();
|
||||
|
||||
static constexpr OUStringLiteral sProgrammaticNodeName( u"ProgrammaticFieldName" );
|
||||
static constexpr OUStringLiteral sAssignedNodeName( u"AssignedFieldName" );
|
||||
static constexpr OUString sProgrammaticNodeName( u"ProgrammaticFieldName"_ustr );
|
||||
static constexpr OUString sAssignedNodeName( u"AssignedFieldName"_ustr );
|
||||
|
||||
for ( ; pExistentFields != pExistentFieldsEnd; ++pExistentFields )
|
||||
{
|
||||
|
|
|
@ -34,7 +34,7 @@ using namespace ::com::sun::star::lang;
|
|||
using namespace ::com::sun::star::sdb;
|
||||
|
||||
|
||||
constexpr OUStringLiteral cDataSourceHistory = u"DataSourceHistory";
|
||||
constexpr OUString cDataSourceHistory = u"DataSourceHistory"_ustr;
|
||||
|
||||
Sequence<OUString> const & BibConfig::GetPropertyNames()
|
||||
{
|
||||
|
|
|
@ -73,7 +73,7 @@ using namespace ::com::sun::star::lang;
|
|||
|
||||
// PropertyNames
|
||||
constexpr OUStringLiteral FM_PROP_LABEL = u"Label";
|
||||
constexpr OUStringLiteral FM_PROP_CONTROLSOURCE = u"DataField";
|
||||
constexpr OUString FM_PROP_CONTROLSOURCE = u"DataField"_ustr;
|
||||
constexpr OUStringLiteral FM_PROP_NAME = u"Name";
|
||||
|
||||
static Reference< XConnection > getConnection(const OUString& _rURL)
|
||||
|
|
|
@ -93,8 +93,8 @@ namespace dbp
|
|||
if (!xColumnFactory.is() || !xColumnContainer.is())
|
||||
return;
|
||||
|
||||
static constexpr OUStringLiteral s_sMouseWheelBehavior = u"MouseWheelBehavior";
|
||||
static constexpr OUStringLiteral s_sEmptyString = u"";
|
||||
static constexpr OUString s_sMouseWheelBehavior = u"MouseWheelBehavior"_ustr;
|
||||
static constexpr OUString s_sEmptyString = u""_ustr;
|
||||
|
||||
// collect "descriptors" for the to-be-created (grid)columns
|
||||
std::vector< OUString > aColumnServiceNames; // service names to be used with the XGridColumnFactory
|
||||
|
|
|
@ -189,7 +189,7 @@ namespace dbp
|
|||
|
||||
void OOptionGroupLayouter::implAnchorShape(const Reference< XPropertySet >& _rxShapeProps)
|
||||
{
|
||||
static constexpr OUStringLiteral s_sAnchorPropertyName = u"AnchorType";
|
||||
static constexpr OUString s_sAnchorPropertyName = u"AnchorType"_ustr;
|
||||
Reference< XPropertySetInfo > xPropertyInfo;
|
||||
if (_rxShapeProps.is())
|
||||
xPropertyInfo = _rxShapeProps->getPropertySetInfo();
|
||||
|
|
|
@ -90,7 +90,7 @@ namespace
|
|||
{
|
||||
const sal_Unicode quote_char = '"';
|
||||
const sal_Unicode comma_char = ',';
|
||||
constexpr OUStringLiteral dos_newline = u"\r\n";
|
||||
constexpr OUString dos_newline = u"\r\n"_ustr;
|
||||
|
||||
bool needsQuoting(std::u16string_view str)
|
||||
{
|
||||
|
|
|
@ -65,7 +65,7 @@ constexpr OUStringLiteral PROPERTY_TITLE = u"BubbleHeading";
|
|||
constexpr OUStringLiteral PROPERTY_TEXT = u"BubbleText";
|
||||
constexpr OUStringLiteral PROPERTY_SHOW_BUBBLE = u"BubbleVisible";
|
||||
constexpr OUStringLiteral PROPERTY_CLICK_HDL = u"MenuClickHDL";
|
||||
constexpr OUStringLiteral PROPERTY_SHOW_MENUICON = u"MenuIconVisible";
|
||||
constexpr OUString PROPERTY_SHOW_MENUICON = u"MenuIconVisible"_ustr;
|
||||
|
||||
// Returns the URL of the release note for the given position
|
||||
OUString getReleaseNote(const UpdateInfo& rInfo, sal_uInt8 pos, bool autoDownloadEnabled)
|
||||
|
|
|
@ -64,20 +64,20 @@
|
|||
#include <tools/urlobj.hxx>
|
||||
#include <comphelper/diagnose_ex.hxx>
|
||||
|
||||
constexpr OUStringLiteral COMMAND_CLOSE = u"close";
|
||||
constexpr OUString COMMAND_CLOSE = u"close"_ustr;
|
||||
|
||||
constexpr OUStringLiteral CTRL_THROBBER = u"throbber";
|
||||
constexpr OUStringLiteral CTRL_PROGRESS = u"progress";
|
||||
constexpr OUString CTRL_THROBBER = u"throbber"_ustr;
|
||||
constexpr OUString CTRL_PROGRESS = u"progress"_ustr;
|
||||
|
||||
constexpr OUStringLiteral TEXT_STATUS = u"text_status";
|
||||
constexpr OUStringLiteral TEXT_PERCENT = u"text_percent";
|
||||
constexpr OUStringLiteral TEXT_DESCRIPTION = u"text_description";
|
||||
constexpr OUString TEXT_STATUS = u"text_status"_ustr;
|
||||
constexpr OUString TEXT_PERCENT = u"text_percent"_ustr;
|
||||
constexpr OUString TEXT_DESCRIPTION = u"text_description"_ustr;
|
||||
|
||||
constexpr OUStringLiteral FIXED_LINE_MODEL = u"com.sun.star.awt.UnoControlFixedLineModel";
|
||||
constexpr OUStringLiteral FIXED_TEXT_MODEL = u"com.sun.star.awt.UnoControlFixedTextModel";
|
||||
constexpr OUStringLiteral EDIT_FIELD_MODEL = u"com.sun.star.awt.UnoControlEditModel";
|
||||
constexpr OUStringLiteral BUTTON_MODEL = u"com.sun.star.awt.UnoControlButtonModel";
|
||||
constexpr OUStringLiteral GROUP_BOX_MODEL = u"com.sun.star.awt.UnoControlGroupBoxModel";
|
||||
constexpr OUString FIXED_TEXT_MODEL = u"com.sun.star.awt.UnoControlFixedTextModel"_ustr;
|
||||
constexpr OUString EDIT_FIELD_MODEL = u"com.sun.star.awt.UnoControlEditModel"_ustr;
|
||||
constexpr OUString BUTTON_MODEL = u"com.sun.star.awt.UnoControlButtonModel"_ustr;
|
||||
constexpr OUString GROUP_BOX_MODEL = u"com.sun.star.awt.UnoControlGroupBoxModel"_ustr;
|
||||
|
||||
using namespace com::sun::star;
|
||||
|
||||
|
|
|
@ -39,12 +39,12 @@
|
|||
|
||||
#include <bitmaps.hlst>
|
||||
|
||||
constexpr OUStringLiteral PROPERTY_TITLE = u"BubbleHeading";
|
||||
constexpr OUStringLiteral PROPERTY_TEXT = u"BubbleText";
|
||||
constexpr OUStringLiteral PROPERTY_IMAGE = u"BubbleImageURL";
|
||||
constexpr OUStringLiteral PROPERTY_SHOW_BUBBLE = u"BubbleVisible";
|
||||
constexpr OUStringLiteral PROPERTY_CLICK_HDL = u"MenuClickHDL";
|
||||
constexpr OUStringLiteral PROPERTY_SHOW_MENUICON = u"MenuIconVisible";
|
||||
constexpr OUString PROPERTY_TITLE = u"BubbleHeading"_ustr;
|
||||
constexpr OUString PROPERTY_TEXT = u"BubbleText"_ustr;
|
||||
constexpr OUString PROPERTY_IMAGE = u"BubbleImageURL"_ustr;
|
||||
constexpr OUString PROPERTY_SHOW_BUBBLE = u"BubbleVisible"_ustr;
|
||||
constexpr OUString PROPERTY_CLICK_HDL = u"MenuClickHDL"_ustr;
|
||||
constexpr OUString PROPERTY_SHOW_MENUICON = u"MenuIconVisible"_ustr;
|
||||
|
||||
using namespace ::com::sun::star;
|
||||
|
||||
|
|
Loading…
Reference in a new issue