From e1f6dac6893e0ad9e1b1f03a3b882cf1e9a08d32 Mon Sep 17 00:00:00 2001 From: Ashish Banerjee Date: Wed, 3 Apr 2013 20:11:54 -0600 Subject: Replace `compareTo(...) == 0` with == MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Proposed patch for the following issue: https://bugs.freedesktop.org/show_bug.cgi?id=62096 Change-Id: Ib83a9051ea12c53642f781e5427a6ca728049a7f Reviewed-on: https://gerrit.libreoffice.org/3198 Reviewed-by: Thomas Arnhold Reviewed-by: Luboš Luňák Tested-by: Miklos Vajna --- dbaccess/source/ui/dlg/CollectionView.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dbaccess') diff --git a/dbaccess/source/ui/dlg/CollectionView.cxx b/dbaccess/source/ui/dlg/CollectionView.cxx index 40516da304c1..202c54f9c991 100644 --- a/dbaccess/source/ui/dlg/CollectionView.cxx +++ b/dbaccess/source/ui/dlg/CollectionView.cxx @@ -287,7 +287,7 @@ void OCollectionView::initCurrentPath() const ::rtl::OUString sCID = m_xContent->getIdentifier()->getContentIdentifier(); const static ::rtl::OUString s_sFormsCID("private:forms"); const static ::rtl::OUString s_sReportsCID("private:reports"); - m_bCreateForm = s_sFormsCID.compareTo(sCID) == 0; + m_bCreateForm = s_sFormsCID == sCID ; ::rtl::OUString sPath("/"); if ( m_bCreateForm && sCID.getLength() != s_sFormsCID.getLength()) sPath = sCID.copy(s_sFormsCID.getLength()); -- cgit