summaryrefslogtreecommitdiff
path: root/store
AgeCommit message (Collapse)AuthorFilesLines
2012-04-24WaE: MSVC2008 C4530 exception handler without unwind semanticsCaolán McNamara1-0/+1
2012-03-23Make default zero-initialization explicitStephan Bergmann1-1/+1
...to match style used for other data members.
2012-03-23Initialize m_hFile in FileMapping constructor.Catalin Iacob1-1/+1
GCC gives the following warning which breaks compilation when using --enable-werror: lockbyte.cxx: In function 'storeError store::FileLockBytes_createInstance(rtl::Reference<store::ILockBytes>&, rtl_uString*, storeAccessMode)': lockbyte.css:512:37: error: 'prephitmp.221' may be used uninitialized in this function [-Werror=uninitialized] lockbyte.cxx:906:1: note: 'prephitmp.221' was declared here It's not clear from GCC's message, but what it warns about is FileMapping::m_hFile. This is because of the following sequence: * xMapping.release() makes xMapping.m_value be a default constructed FileMapping * the xMapping local variable in store::FileLockBytes_createInstance gets destructed * ~ResourceHolder() calls ResourceHolder::reset * ResourceHolder::reset() calls FileMapping::UnmapFile::operator() passing m_value as rMapping * FileMapping::UnmapFile::operator() uses rMapping.m_hFile but rMapping is a default constructed FileMapping and therefore has m_hFile uninitialized Signed-off-by: Stephan Bergmann <sbergman@redhat.com>: To me, this looks more like a compiler error. Also note that ResourceHolder::reset only calls FileMapping::UnmapFile::operator() if tmp != value, which is not the case here, as both tmp and value are default- constructed. And FileMapping::operator!= is carefule not to use the potentially uninitialized m_hFile. But always intiializing m_hFile is probably not a bad idea, anyway. And if it helps a certain compiler, all the better.
2012-03-14Enable -Wnon-virtual-dtor for GCC 4.6Stephan Bergmann5-0/+15
...which has the necessary features to support it. Change a lot of classes to either contain a protected non-virtual dtor (which is backwards compatible, so even works for cppumaker-generated UNO headers) or a public virtual one. cppuhelper/propertysetmixin.hxx still needs to disable the warning, as the relevant class has a non-virtual dtor but friends, which would still cause GCC to warn. Includes a patch for libcmis, intended to be upstreamed.
2012-02-21WaE: silence some documentation errorsThomas Arnhold1-1/+1
2012-02-06Added READMEs for modules related to URE, with content from the wikiJosh Heidenreich1-0/+1
2012-01-31SimplificationStephan Bergmann1-9/+2
2012-01-21Removed some unused parameters; added SAL_UNUSED_PARAMETER.Stephan Bergmann11-18/+17
SAL_UNUSED_PARAMETER (expanding to __attribute__ ((unused)) for GCC) is used to annotate legitimately unused parameters, so that static analysis tools can tell legitimately unused parameters from truly unnecessary ones. To that end, some patches for external modules are also added, that are only applied when compiling with GCC and add necessary __attribute__ ((unused)) in headers.
2012-01-10valgrind: have MappedLockBytes take complete ownership of the file handleCaolán McNamara1-0/+2
have MappedLockBytes take complete ownership of the file handle and unmap it and close it on release. Otherwise xFile will close it and MappedLockBytes will unmap it in that order, which breaks post android requirement to have a valid file handle in unmap
2011-12-21osl_unmapFile can't work for files bundled inside the .apk on AndroidTor Lillqvist1-5/+9
On Android, when an app is installed, arbitrary files bundled in the app won't be unpacked into actual separate files in the file system. They will exist only as archive entries in the .apk file (which is a zip archive). The SDK tooling puts such files under the /assets folder in the .apk. The LibreOffice bootstrapping code for Android maps the .apk file into memory. osl_openFile() knows about the /assets special case, and uses a separate abstraction for such memory-mapped files. Obviously, when producing an .apk, one needs to make sure these bundled files are not compressed, if one wants to be able to use them directly from the memory-mapped .apk file. We do that in our test and sample Android projects. When mapping such files under /assets , just return a pointer to the file's location inside the mapped .apk archive. We can't use the old osl_unmapFile() on such mapped files, as that would unexpectedly unmap fairly arbitrary pages of the .apk mapping, wreaking havoc on later use of the same pages. So, introduce a new osl_unmapMappedFile() function that takes also the oslFileHandle originally passed to osl_mapFile(). Use this instead in the few places where the code actually called osl_unmapFile(). Make sure osl_mapFile() is nonexistent on Android.
2011-12-11I don't see NO_BSYMBOLIC being used anywhereTor Lillqvist1-1/+0
2011-11-27remove precompiled_xxx.hxx/cxxNorbert Thiebaud2-63/+0
2011-11-27remove include of pch header from storeNorbert Thiebaud16-30/+0
2011-11-27remove PCH support in dmake-moduleNorbert Thiebaud1-8/+0
2011-11-10Deliver libstore.so for AndroidTor Lillqvist1-0/+1
2011-09-21OSL_TRACE: Remove trailing newlinesThomas Arnhold1-2/+2
Done with perl regex: s/(\n\s*OSL_TRACE\(\s*\"[^\n]+?)\s*(\\n)+(\"[^\n]*\)\;\n)/$1$3/gs; - removed trailing whitespaces and (multiple) newlines
2011-09-06[cppchecker] suppression of unread VariablePierre-André Jacquod1-2/+1
2011-08-08Deliver also static libstoreTor Lillqvist1-2/+1
2011-06-18Drop duplicateTor Lillqvist1-1/+0
2011-06-18Just make -lstore work for MinGW as it does for other Unix-style compilersTor Lillqvist1-1/+1
I don't really see the point in having the UDK_MAJOR in the import library name. We don't do that for any Unix either, just -lstore is used. It isn't as if it would make any sense in keeping a mix of (import) libraries for incompatible versions/builds of the LO (SDK) in the same location anyway. The simpler, the better.
2011-06-03Drop %_EXT% which was always emptyTor Lillqvist1-10/+10
2011-05-25Use special DLL and library name just for MSCTor Lillqvist2-0/+5
2011-03-23Merge commit 'ooo/DEV300_m103'Jan Holesovsky2-2/+4
Conflicts: codemaker/source/bonobowrappermaker/corbaoptions.cxx codemaker/source/cppumaker/cppuoptions.cxx codemaker/source/cunomaker/cunooptions.cxx codemaker/source/idlmaker/idloptions.cxx codemaker/source/javamaker/javaoptions.cxx cppu/source/typelib/typelib.cxx idlc/source/options.cxx offapi/com/sun/star/util/PathSubstitution.idl offapi/drafts/com/sun/star/form/ListEntryEvent.idl offapi/drafts/com/sun/star/form/XBindableValue.idl offapi/drafts/com/sun/star/form/XListEntryListener.idl offapi/drafts/com/sun/star/form/XListEntrySink.idl offapi/drafts/com/sun/star/form/XListEntrySource.idl offapi/drafts/com/sun/star/form/XValueBinding.idl registry/tools/checksingleton.cxx registry/tools/options.hxx registry/tools/regcompare.cxx registry/tools/regmerge.cxx sal/cppunittester/cppunittester.cxx sal/osl/unx/socket.c sal/osl/w32/diagnose.c sal/prj/d.lst sal/rtl/source/alloc_fini.cxx sal/rtl/source/alloc_global.c sal/rtl/source/makefile.mk
2011-02-01Remove RCS informationThomas Arnhold11-11/+11
2010-12-10RTL_CONSTASCII_USTRINGPARAM in ure 2Gert Faller1-1/+1
2010-12-10RTL_CONSTASCII_USTRINGPARAM in ure 1Gert Faller1-4/+4
2010-11-25Update from sibling repository.Matthias Huetsch [mhu]2-2/+4
2010-11-25#i115784# store: fix memory errors uncovered by valgrind and other tools.Matthias Huetsch [mhu]2-2/+4
2010-10-27add modelines to .h and .c files as wellCaolán McNamara2-0/+4
2010-10-18remove non-compiled codePovilas Kanapickas9-402/+0
2010-10-17use SAL_N_ELEMENTS macroKenneth Venken1-1/+2
2010-10-14Add vim/emacs modelines to all source filesSebastian Spaeth29-0/+78
Fixes #fdo30794 Based on bin/add-modelines script (originally posted in mail 1286706307.1871.1399280959@webmail.messagingengine.com) Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2010-10-05more removed include guards using fixguard.pyPetr Mladek3-30/+0
2010-10-05remove include guards using fixguard.pyPetr Mladek1-18/+0
2010-04-09Update from master repository (DEV300_m76).Matthias Huetsch [mhu]1-0/+1
2010-03-22Update from master repository (DEV300_m75).Matthias Huetsch [mhu]34-107/+34
2010-02-12changefileheader2: #i109125#: change source file copyright notice from Sun ↵Jens-Heiner Rechtien35-305/+155
Microsystems to Oracle; remove CVS style keywords (RCSfile, Revision)
2010-03-04mhu22: resync to master repository (DEV300_m73).Matthias Huetsch [mhu]34-245/+124
2010-03-04mhu22: #i105430# #i108349# Fixed registry:ORegKey reference counting to ↵Matthias Huetsch [mhu]1-0/+0
avoid redundant closeKey()/flush() calls.
2010-01-18#i108349# Added missing statement (compiler warning).Matthias Huetsch [mhu]1-0/+1
2009-12-09Update from master repository (to m67).Matthias Huetsch [mhu]1-1/+1
2009-12-09#i71568# #i108349# Fixed copyright header.Matthias Huetsch [mhu]1-4/+1
2009-12-09Fixed copyright header.Matthias Huetsch [mhu]1-4/+1
2009-11-13Fixed copyright headers.Matthias Huetsch [mhu]6-147/+99
2009-11-13#i71568# #i108349# Simplified block (page) allocation.Matthias Huetsch [mhu]6-282/+170
2009-11-13#i71568# Simplified block (page) allocation.Matthias Huetsch [mhu]6-282/+170
2009-11-10#i71568# #i108349# Remove unnecessary flush(), more cleanup.Matthias Huetsch [mhu]3-39/+60
2009-11-10#i71568# Remove unnecessary flush(), more cleanup.Matthias Huetsch3-39/+60
2009-11-06cmcfixes66: #i106675# silence gcc's memset warning on 0 len when the len ↵Caolán McNamara1-1/+1
really is 0
2009-11-02#i71568# #i108349# Remove unused StateBlock code.Matthias Huetsch [mhu]3-423/+119