summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2015-11-15 12:22:28 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-11-15 12:18:55 +0000
commit25aec383f95fded43b3fe5fc588b4ebdc6d7d272 (patch)
tree846cce228d7ff120abc40b7767b251c2e04b2a30 /unotools
parent35f5833ca35dc170b67ed9f8e288302eb06eb972 (diff)
use initialiser for Sequence<OUString>
replaced using: git grep -lP 'Sequence.*OUString.*\(\s*1\s*\)' | xargs perl -0777 -pi -e "s/Sequence<\s*OUString\s*> (\w+)\(\s*1\s*\); .*\[0\] = (\S+);/Sequence<OUString> \1 { \2 };/g" Change-Id: I20ad0489da887a9712982531c3b127339bb8b3b9 Reviewed-on: https://gerrit.libreoffice.org/19969 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/config/cmdoptions.cxx3
-rw-r--r--unotools/source/config/eventcfg.cxx3
-rw-r--r--unotools/source/config/extendedsecurityoptions.cxx3
3 files changed, 3 insertions, 6 deletions
diff --git a/unotools/source/config/cmdoptions.cxx b/unotools/source/config/cmdoptions.cxx
index d7572381e103..230af07eadcd 100644
--- a/unotools/source/config/cmdoptions.cxx
+++ b/unotools/source/config/cmdoptions.cxx
@@ -169,8 +169,7 @@ SvtCommandOptions_Impl::SvtCommandOptions_Impl()
/*TODO: Not used in the moment! see Notify() ...
// Enable notification mechanism of our baseclass.
// We need it to get information about changes outside these class on our used configuration keys! */
- Sequence< OUString > aNotifySeq( 1 );
- aNotifySeq[0] = "Disabled";
+ Sequence<OUString> aNotifySeq { "Disabled" };
EnableNotification( aNotifySeq, true );
}
diff --git a/unotools/source/config/eventcfg.cxx b/unotools/source/config/eventcfg.cxx
index 82b1b578bbff..a10c74c33b9d 100644
--- a/unotools/source/config/eventcfg.cxx
+++ b/unotools/source/config/eventcfg.cxx
@@ -120,8 +120,7 @@ GlobalEventConfig_Impl::GlobalEventConfig_Impl()
/*TODO: Not used in the moment! see Notify() ...
// Enable notification mechanism of our baseclass.
// We need it to get information about changes outside these class on our used configuration keys! */
- Sequence< OUString > aNotifySeq( 1 );
- aNotifySeq[0] = "Events";
+ Sequence<OUString> aNotifySeq { "Events" };
EnableNotification( aNotifySeq, true );
}
diff --git a/unotools/source/config/extendedsecurityoptions.cxx b/unotools/source/config/extendedsecurityoptions.cxx
index 73aa9a05a3bd..3a4f5cbb4d5e 100644
--- a/unotools/source/config/extendedsecurityoptions.cxx
+++ b/unotools/source/config/extendedsecurityoptions.cxx
@@ -146,8 +146,7 @@ SvtExtendedSecurityOptions_Impl::SvtExtendedSecurityOptions_Impl()
// Enable notification mechanism of our baseclass.
// We need it to get information about changes outside these class on our used configuration keys!
- Sequence< OUString > seqNotifyNames( 1 );
- seqNotifyNames[0] = m_aSecureExtensionsSetName;
+ Sequence<OUString> seqNotifyNames { m_aSecureExtensionsSetName };
EnableNotification( seqNotifyNames );
}