Kaydet (Commit) 94ca2679 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:stringconstant: Flag more inefficiencies

Change-Id: I2b3e3fedeb9b824f43208a5d4066c9278231dcba
üst 0c7cf722
...@@ -438,7 +438,7 @@ namespace svxform ...@@ -438,7 +438,7 @@ namespace svxform
case SID_FM_NEW_FORM: case SID_FM_NEW_FORM:
{ {
OUString aStr(SVX_RESSTR(RID_STR_FORM)); OUString aStr(SVX_RESSTR(RID_STR_FORM));
OUString aUndoStr = SVX_RESSTR(RID_STR_UNDO_CONTAINER_INSERT).replaceAll(OUString('#'), aStr); OUString aUndoStr = SVX_RESSTR(RID_STR_UNDO_CONTAINER_INSERT).replaceAll("#", aStr);
pFormModel->BegUndo(aUndoStr); pFormModel->BegUndo(aUndoStr);
// slot was only available, if there is only one selected entry, // slot was only available, if there is only one selected entry,
...@@ -450,7 +450,7 @@ namespace svxform ...@@ -450,7 +450,7 @@ namespace svxform
case SID_FM_NEW_HIDDEN: case SID_FM_NEW_HIDDEN:
{ {
OUString aStr(SVX_RESSTR(RID_STR_CONTROL)); OUString aStr(SVX_RESSTR(RID_STR_CONTROL));
OUString aUndoStr = SVX_RESSTR(RID_STR_UNDO_CONTAINER_INSERT).replaceAll(OUString('#'), aStr); OUString aUndoStr = SVX_RESSTR(RID_STR_UNDO_CONTAINER_INSERT).replaceAll("#", aStr);
pFormModel->BegUndo(aUndoStr); pFormModel->BegUndo(aUndoStr);
// slot was valid for (exactly) one selected form // slot was valid for (exactly) one selected form
...@@ -969,7 +969,7 @@ namespace svxform ...@@ -969,7 +969,7 @@ namespace svxform
if (pFormModel) if (pFormModel)
{ {
OUString aStr(SVX_RESSTR(RID_STR_CONTROL)); OUString aStr(SVX_RESSTR(RID_STR_CONTROL));
OUString aUndoStr = SVX_RESSTR(RID_STR_UNDO_CONTAINER_INSERT).replaceAll(OUString('#'), aStr); OUString aUndoStr = SVX_RESSTR(RID_STR_UNDO_CONTAINER_INSERT).replaceAll("#", aStr);
pFormModel->BegUndo(aUndoStr); pFormModel->BegUndo(aUndoStr);
} }
......
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