Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
250ef02b
Kaydet (Commit)
250ef02b
authored
Şub 19, 2015
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
connectivity: replace magic numbers with constants from CompareBookmark
Change-Id: Ifcd5766ce10de44f38d5c383cd7dc35b75152e88
üst
86796f12
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
13 deletions
+15
-13
CResultSet.cxx
connectivity/source/drivers/calc/CResultSet.cxx
+1
-1
DResultSet.cxx
connectivity/source/drivers/dbase/DResultSet.cxx
+3
-5
EResultSet.cxx
connectivity/source/drivers/flat/EResultSet.cxx
+1
-1
MResultSet.cxx
connectivity/source/drivers/mork/MResultSet.cxx
+5
-3
MResultSet.cxx
connectivity/source/drivers/mozab/MResultSet.cxx
+5
-3
No files found.
connectivity/source/drivers/calc/CResultSet.cxx
Dosyayı görüntüle @
250ef02b
...
...
@@ -110,7 +110,7 @@ sal_Bool SAL_CALL OCalcResultSet::moveRelativeToBookmark( const Any& bookmark,
sal_Int32
SAL_CALL
OCalcResultSet
::
compareBookmarks
(
const
Any
&
lhs
,
const
Any
&
rhs
)
throw
(
SQLException
,
RuntimeException
,
std
::
exception
)
{
return
(
lhs
==
rhs
)
?
0
:
2
;
return
(
lhs
==
rhs
)
?
CompareBookmark
::
EQUAL
:
CompareBookmark
::
NOT_EQUAL
;
}
sal_Bool
SAL_CALL
OCalcResultSet
::
hasOrderedBookmarks
(
)
throw
(
SQLException
,
RuntimeException
,
std
::
exception
)
...
...
connectivity/source/drivers/dbase/DResultSet.cxx
Dosyayı görüntüle @
250ef02b
...
...
@@ -122,14 +122,12 @@ sal_Int32 SAL_CALL ODbaseResultSet::compareBookmarks( const Any& lhs, const Any&
::
dbtools
::
throwGenericSQLException
(
sMessage
,
*
this
);
}
// if ( !( lhs >>= nFirst ) || !( rhs >>= nSecond ) )
// have a look at CompareBookmark
// we can't use the names there because we already have defines with the same name from the parser
if
(
nFirst
<
nSecond
)
nResult
=
-
1
;
nResult
=
CompareBookmark
::
LESS
;
else
if
(
nFirst
>
nSecond
)
nResult
=
1
;
nResult
=
CompareBookmark
::
GREATER
;
else
nResult
=
0
;
nResult
=
CompareBookmark
::
EQUAL
;
return
nResult
;
}
...
...
connectivity/source/drivers/flat/EResultSet.cxx
Dosyayı görüntüle @
250ef02b
...
...
@@ -129,7 +129,7 @@ sal_Bool SAL_CALL OFlatResultSet::moveRelativeToBookmark( const Any& bookmark,
sal_Int32
SAL_CALL
OFlatResultSet
::
compareBookmarks
(
const
Any
&
lhs
,
const
Any
&
rhs
)
throw
(
SQLException
,
RuntimeException
,
std
::
exception
)
{
return
(
lhs
==
rhs
)
?
0
:
2
;
return
(
lhs
==
rhs
)
?
CompareBookmark
::
EQUAL
:
CompareBookmark
::
NOT_EQUAL
;
}
sal_Bool
SAL_CALL
OFlatResultSet
::
hasOrderedBookmarks
(
)
throw
(
SQLException
,
RuntimeException
,
std
::
exception
)
...
...
connectivity/source/drivers/mork/MResultSet.cxx
Dosyayı görüntüle @
250ef02b
...
...
@@ -28,6 +28,7 @@
#include <com/sun/star/sdbc/ResultSetType.hpp>
#include <com/sun/star/sdbc/FetchDirection.hpp>
#include <com/sun/star/sdbc/ResultSetConcurrency.hpp>
#include <com/sun/star/sdbcx/CompareBookmark.hpp>
#include <comphelper/types.hxx>
#include <connectivity/dbexception.hxx>
#include <connectivity/dbtools.hxx>
...
...
@@ -57,6 +58,7 @@ using namespace com::sun::star::uno;
using
namespace
com
::
sun
::
star
::
lang
;
using
namespace
com
::
sun
::
star
::
beans
;
using
namespace
com
::
sun
::
star
::
sdbc
;
using
namespace
com
::
sun
::
star
::
sdbcx
;
using
namespace
com
::
sun
::
star
::
container
;
using
namespace
com
::
sun
::
star
::
io
;
using
namespace
com
::
sun
::
star
::
util
;
...
...
@@ -1610,11 +1612,11 @@ sal_Int32 OResultSet::compareBookmarks( const ::com::sun::star::uno::Any& lhs, c
}
if
(
nFirst
<
nSecond
)
nResult
=
-
1
;
nResult
=
CompareBookmark
::
LESS
;
else
if
(
nFirst
>
nSecond
)
nResult
=
1
;
nResult
=
CompareBookmark
::
GREATER
;
else
nResult
=
0
;
nResult
=
CompareBookmark
::
EQUAL
;
return
nResult
;
}
...
...
connectivity/source/drivers/mozab/MResultSet.cxx
Dosyayı görüntüle @
250ef02b
...
...
@@ -28,6 +28,7 @@
#include <com/sun/star/sdbc/ResultSetType.hpp>
#include <com/sun/star/sdbc/FetchDirection.hpp>
#include <com/sun/star/sdbc/ResultSetConcurrency.hpp>
#include <com/sun/star/sdbcx/CompareBookmark.hpp>
#include <comphelper/types.hxx>
#include <connectivity/dbexception.hxx>
#include <connectivity/dbtools.hxx>
...
...
@@ -56,6 +57,7 @@ using namespace com::sun::star::uno;
using
namespace
com
::
sun
::
star
::
lang
;
using
namespace
com
::
sun
::
star
::
beans
;
using
namespace
com
::
sun
::
star
::
sdbc
;
using
namespace
com
::
sun
::
star
::
sdbcx
;
using
namespace
com
::
sun
::
star
::
container
;
using
namespace
com
::
sun
::
star
::
io
;
using
namespace
com
::
sun
::
star
::
util
;
...
...
@@ -1619,11 +1621,11 @@ sal_Int32 OResultSet::compareBookmarks( const ::com::sun::star::uno::Any& lhs, c
m_pStatement
->
getOwnConnection
()
->
throwSQLException
(
STR_INVALID_BOOKMARK
,
*
this
);
if
(
nFirst
<
nSecond
)
nResult
=
-
1
;
nResult
=
CompareBookmark
::
LESS
;
else
if
(
nFirst
>
nSecond
)
nResult
=
1
;
nResult
=
CompareBookmark
::
GREATER
;
else
nResult
=
0
;
nResult
=
CompareBookmark
::
EQUAL
;
return
nResult
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment