[Libreoffice-commits] .: dbaccess/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sat Dec 1 06:36:26 PST 2012
dbaccess/source/ui/dlg/paramdialog.cxx | 16 ++++++++--------
dbaccess/source/ui/dlg/sqlmessage.cxx | 4 ++--
dbaccess/source/ui/inc/paramdialog.hxx | 2 +-
dbaccess/source/ui/inc/sqlmessage.hxx | 6 +++---
4 files changed, 14 insertions(+), 14 deletions(-)
New commits:
commit dd4edd93696140b7fae61268511886845d777645
Author: Ricardo Montania <ricardo at linuxafundo.com.br>
Date: Fri Nov 30 18:01:26 2012 -0200
fdo##38838 UniString Removal in dbaccess
Change-Id: I6c4f8e9834fdd78851f5274ce2b141cfb49e6458
Reviewed-on: https://gerrit.libreoffice.org/1208
Reviewed-by: Olivier Hallot <olivier.hallot at alta.org.br>
Tested-by: Olivier Hallot <olivier.hallot at alta.org.br>
diff --git a/dbaccess/source/ui/dlg/paramdialog.cxx b/dbaccess/source/ui/dlg/paramdialog.cxx
index 1453c84..694cdea 100644
--- a/dbaccess/source/ui/dlg/paramdialog.cxx
+++ b/dbaccess/source/ui/dlg/paramdialog.cxx
@@ -110,7 +110,7 @@ DBG_NAME(OParameterDialog)
if (!pValues->Value.hasValue())
// it won't have a value, 'cause it's default constructed. But may be later we support
// initializing this dialog with values
- pValues->Value = makeAny(::rtl::OUString());
+ pValues->Value = makeAny( OUString() );
// default the values to an empty string
m_aVisitedParams.push_back(0);
@@ -182,14 +182,14 @@ DBG_NAME(OParameterDialog)
}
// transform the current string according to the param field type
- ::rtl::OUString sTransformedText(m_aParam.GetText());
+ OUString sTransformedText(m_aParam.GetText());
Reference< XPropertySet > xParamAsSet;
m_xParams->getByIndex(m_nCurrentlySelected) >>= xParamAsSet;
if (xParamAsSet.is())
{
if (m_xConnection.is() && m_xFormatter.is())
{
- ::rtl::OUString sParamValue( m_aParam.GetText() );
+ OUString sParamValue( m_aParam.GetText() );
sal_Bool bValid = m_aPredicateInput.normalizePredicateString( sParamValue, xParamAsSet );
m_aParam.SetText( sParamValue );
if ( bValid )
@@ -205,7 +205,7 @@ DBG_NAME(OParameterDialog)
m_bNeedErrorOnCurrent = sal_False; // will be reset in OnValueModified
- ::rtl::OUString sName;
+ OUString sName;
try
{
sName = ::comphelper::getString(xParamAsSet->getPropertyValue(PROPERTY_NAME));
@@ -220,7 +220,7 @@ DBG_NAME(OParameterDialog)
LocalResourceAccess aDummy(DLG_PARAMETERS, RSC_MODALDIALOG);
sMessage = String(ModuleRes(STR_COULD_NOT_CONVERT_PARAM));
}
- sMessage.SearchAndReplaceAll(rtl::OUString("$name$"), sName);
+ sMessage.SearchAndReplaceAll( OUString("$name$"), sName );
ErrorBox(NULL, WB_OK, sMessage).Execute();
m_aParam.GrabFocus();
return 1L;
@@ -265,9 +265,9 @@ DBG_NAME(OParameterDialog)
Reference< XPropertySet > xParamAsSet;
m_xParams->getByIndex(i) >>= xParamAsSet;
- ::rtl::OUString sValue;
+ OUString sValue;
pValues->Value >>= sValue;
- pValues->Value <<= ::rtl::OUString( m_aPredicateInput.getPredicateValue( sValue, xParamAsSet, sal_False ) );
+ pValues->Value <<= OUString( m_aPredicateInput.getPredicateValue( sValue, xParamAsSet, sal_False ) );
}
}
catch(Exception&)
@@ -324,7 +324,7 @@ DBG_NAME(OParameterDialog)
return 1L;
}
- m_aFinalValues[m_nCurrentlySelected].Value <<= ::rtl::OUString(m_aParam.GetText());
+ m_aFinalValues[m_nCurrentlySelected].Value <<= OUString(m_aParam.GetText());
}
// initialize the controls with the new values
diff --git a/dbaccess/source/ui/dlg/sqlmessage.cxx b/dbaccess/source/ui/dlg/sqlmessage.cxx
index 210d5e6..9c3ecc8 100644
--- a/dbaccess/source/ui/dlg/sqlmessage.cxx
+++ b/dbaccess/source/ui/dlg/sqlmessage.cxx
@@ -716,7 +716,7 @@ OSQLMessageBox::OSQLMessageBox(Window* _pParent, const SQLExceptionInfo& _rExcep
}
//------------------------------------------------------------------------------
-OSQLMessageBox::OSQLMessageBox( Window* _pParent, const UniString& _rTitle, const UniString& _rMessage, WinBits _nStyle, MessageType _eType, const ::dbtools::SQLExceptionInfo* _pAdditionalErrorInfo )
+OSQLMessageBox::OSQLMessageBox( Window* _pParent, const OUString& _rTitle, const OUString& _rMessage, WinBits _nStyle, MessageType _eType, const ::dbtools::SQLExceptionInfo* _pAdditionalErrorInfo )
:ButtonDialog( _pParent, WB_HORZ | WB_STDDIALOG )
,m_aInfoImage( this )
,m_aTitle( this, WB_WORDBREAK | WB_LEFT )
@@ -749,7 +749,7 @@ IMPL_LINK( OSQLMessageBox, ButtonClickHdl, Button *, /*pButton*/ )
//==================================================================
// OSQLWarningBox
//==================================================================
-OSQLWarningBox::OSQLWarningBox( Window* _pParent, const UniString& _rMessage, WinBits _nStyle,
+OSQLWarningBox::OSQLWarningBox( Window* _pParent, const OUString& _rMessage, WinBits _nStyle,
const ::dbtools::SQLExceptionInfo* _pAdditionalErrorInfo )
:OSQLMessageBox( _pParent, String( ModuleRes( STR_STAT_WARNING ) ), _rMessage, _nStyle, OSQLMessageBox::Warning, _pAdditionalErrorInfo )
{
diff --git a/dbaccess/source/ui/inc/paramdialog.hxx b/dbaccess/source/ui/inc/paramdialog.hxx
index 45596df..b538877 100644
--- a/dbaccess/source/ui/inc/paramdialog.hxx
+++ b/dbaccess/source/ui/inc/paramdialog.hxx
@@ -98,7 +98,7 @@ namespace dbaui
protected:
void Construct();
- ::connectivity::OSQLParseNode* implPredicateTree(::rtl::OUString& _rErrorMessage, const UniString& _rStatement, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > & _rxField);
+ ::connectivity::OSQLParseNode* implPredicateTree(OUString& _rErrorMessage, const OUString& _rStatement, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > & _rxField);
private:
DECL_LINK(OnVisitedTimeout, Timer*);
diff --git a/dbaccess/source/ui/inc/sqlmessage.hxx b/dbaccess/source/ui/inc/sqlmessage.hxx
index d783a65..da36617 100644
--- a/dbaccess/source/ui/inc/sqlmessage.hxx
+++ b/dbaccess/source/ui/inc/sqlmessage.hxx
@@ -87,8 +87,8 @@ public:
@param _eType determines the image to use. AUTO is disallowed in this constructor version
*/
OSQLMessageBox(Window* pParent,
- const UniString& rTitle,
- const UniString& rMessage,
+ const OUString& rTitle,
+ const OUString& rMessage,
WinBits nStyle = WB_OK | WB_DEF_OK,
MessageType _eType = Info,
const ::dbtools::SQLExceptionInfo* _pAdditionalErrorInfo = NULL );
@@ -114,7 +114,7 @@ class OSQLWarningBox : public OSQLMessageBox
{
public:
OSQLWarningBox( Window* _pParent,
- const UniString& _rMessage,
+ const OUString& _rMessage,
WinBits _nStyle = WB_OK | WB_DEF_OK,
const ::dbtools::SQLExceptionInfo* _pAdditionalErrorInfo = NULL );
};
More information about the Libreoffice-commits
mailing list