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
c35fad42
Kaydet (Commit)
c35fad42
authored
Tem 21, 2011
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use SAL_WARN_UNUSED_RESULT
üst
b09acc30
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
file.h
sal/inc/osl/file.h
+1
-1
file.hxx
sal/inc/osl/file.hxx
+1
-1
types.h
sal/inc/sal/types.h
+1
-1
osl_File.cxx
sal/qa/osl/file/osl_File.cxx
+2
-2
No files found.
sal/inc/osl/file.h
Dosyayı görüntüle @
c35fad42
...
@@ -732,7 +732,7 @@ oslFileError SAL_CALL osl_openFile( rtl_uString *pustrFileURL, oslFileHandle *pH
...
@@ -732,7 +732,7 @@ oslFileError SAL_CALL osl_openFile( rtl_uString *pustrFileURL, oslFileHandle *pH
@see osl_getFilePos()
@see osl_getFilePos()
*/
*/
oslFileError
SAL_CALL
osl_setFilePos
(
oslFileHandle
Handle
,
sal_uInt32
uHow
,
sal_Int64
uPos
);
oslFileError
SAL_CALL
osl_setFilePos
(
oslFileHandle
Handle
,
sal_uInt32
uHow
,
sal_Int64
uPos
)
SAL_WARN_UNUSED_RESULT
;
/** Retrieve the current position of the internal pointer of an open file.
/** Retrieve the current position of the internal pointer of an open file.
...
...
sal/inc/osl/file.hxx
Dosyayı görüntüle @
c35fad42
...
@@ -988,7 +988,7 @@ public:
...
@@ -988,7 +988,7 @@ public:
@see getPos()
@see getPos()
*/
*/
inline
RC
setPos
(
sal_uInt32
uHow
,
sal_Int64
uPos
)
inline
RC
setPos
(
sal_uInt32
uHow
,
sal_Int64
uPos
)
SAL_WARN_UNUSED_RESULT
{
{
return
(
RC
)
osl_setFilePos
(
_pData
,
uHow
,
uPos
);
return
(
RC
)
osl_setFilePos
(
_pData
,
uHow
,
uPos
);
}
}
...
...
sal/inc/sal/types.h
Dosyayı görüntüle @
c35fad42
...
@@ -302,7 +302,7 @@ typedef void * sal_Handle;
...
@@ -302,7 +302,7 @@ typedef void * sal_Handle;
Compilers that support a construct of this nature will emit a compile
Compilers that support a construct of this nature will emit a compile
time warning on unchecked return value.
time warning on unchecked return value.
*/
*/
#if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
#if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
)
# define SAL_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
# define SAL_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
#else
#else
# define SAL_WARN_UNUSED_RESULT
# define SAL_WARN_UNUSED_RESULT
...
...
sal/qa/osl/file/osl_File.cxx
Dosyayı görüntüle @
c35fad42
...
@@ -4246,8 +4246,8 @@ namespace osl_File
...
@@ -4246,8 +4246,8 @@ namespace osl_File
//check if is the new file
//check if is the new file
File newFile( aTmpName4 );
File newFile( aTmpName4 );
newFile.open( osl_File_OpenFlag_Write | osl_File_OpenFlag_Read );
newFile.open( osl_File_OpenFlag_Write | osl_File_OpenFlag_Read );
newFile
.
setPos
(
osl_Pos_End
,
0
);
n
Error1 = n
ewFile.setPos( osl_Pos_End, 0 );
//
CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 );
CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 );
sal_uInt64 nFilePointer;
sal_uInt64 nFilePointer;
nError1 = newFile.getPos( nFilePointer );
nError1 = newFile.getPos( nFilePointer );
CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 );
CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 );
...
...
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