summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/dlg/sqlmessage.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2011-11-11 22:48:37 +0100
committerStephan Bergmann <sbergman@redhat.com>2011-11-11 22:49:21 +0100
commitc1758889cbd5e8e4afb1044425c908715eb3e1cd (patch)
treeff58b017da12c009f0b17c067787d1dbbd52eb7a /dbaccess/source/ui/dlg/sqlmessage.cxx
parent4ffcc73fa25f174c2d1e161f02cce2d7afc15e3b (diff)
Heavily simplified utl::ConfigManager.
Diffstat (limited to 'dbaccess/source/ui/dlg/sqlmessage.cxx')
-rw-r--r--dbaccess/source/ui/dlg/sqlmessage.cxx13
1 files changed, 3 insertions, 10 deletions
diff --git a/dbaccess/source/ui/dlg/sqlmessage.cxx b/dbaccess/source/ui/dlg/sqlmessage.cxx
index 80a1378d6a5d..3abbc2778179 100644
--- a/dbaccess/source/ui/dlg/sqlmessage.cxx
+++ b/dbaccess/source/ui/dlg/sqlmessage.cxx
@@ -456,13 +456,6 @@ struct SQLMessageBox_Impl
//------------------------------------------------------------------------------
namespace
{
- ::rtl::OUString lcl_getProductName()
- {
- ::rtl::OUString sProductName;
- OSL_VERIFY( ::utl::ConfigManager::GetDirectConfigProperty( ::utl::ConfigManager::PRODUCTNAME ) >>= sProductName );
- return sProductName;
- }
-
void lcl_positionInAppFont( const Window& _rParent, Window& _rChild, long _nX, long _nY, long _Width, long _Height )
{
Point aPos = _rParent.LogicToPixel( Point( _nX, _nY ), MAP_APPFONT );
@@ -694,9 +687,9 @@ void OSQLMessageBox::impl_addDetailsButton()
//------------------------------------------------------------------------------
void OSQLMessageBox::Construct( WinBits _nStyle, MessageType _eImage )
{
- // Changed as per BugID 79541 Branding/Configuration
- String sDialogTitle( lcl_getProductName() );
- SetText( sDialogTitle.AppendAscii( " Base" ) );
+ SetText(
+ utl::ConfigManager::getProductName() +
+ rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( " Base" ) ) );
// position and size the controls and the dialog, depending on whether we have one or two texts to display
impl_positionControls();