summaryrefslogtreecommitdiffstats
path: root/ucb
Commit message (Collapse)AuthorAgeFilesLines
* remove unused componentcontext.hxx includesNoel Grandin2013-06-053-3/+0
| | | | Change-Id: I598926b72c5540b472f9607e2f3df134a8c50048
* fix build, bad mergeCaolán McNamara2013-06-041-1/+4
| | | | Change-Id: I153b5ac4c2c75aca055ef49920cbccf3bd7720d4
* Resolves: #i122273# - Avoid using tmpfile()Ariel Constenla-Haile2013-06-044-21/+27
| | | | | | | | | | | | (cherry picked from commit c4ef17d5e2844ca8d2459a3bfa1f91d99ac297f2) Conflicts: ucb/source/ucp/ftp/ftpcfunc.cxx ucb/source/ucp/ftp/ftpinpstr.cxx ucb/source/ucp/ftp/ftpinpstr.hxx ucb/source/ucp/ftp/ftpurl.cxx Change-Id: I267a9191f9b922380bef8653ac74543662ebf3ef
* Prefer prefix ++/-- operators for non-primitive typesJulien Nabet2013-06-031-3/+3
| | | | Change-Id: I1310ac912aa2031b15851339fd84d435308350a9
* ucb: NeonLockStore::stopTicker(): really avoid deadlockMichael Stahl2013-05-302-12/+13
| | | | | | | | | | Follow up on 68ba2785c55eaa1ea70ce135bdad5322b0e04ed7, which missed the sad fact that m_aMutex is locked recursively. Avoid that by passing a ClearableMutexGuard to stopTicker() and unlocking that. Also lock m_aMutex in the destructor while at it. Change-Id: I5ef7ef8f15e2b5c9810c5ffc64ed922ab9ad2807
* ucb: NeonLockStore::stopTicker(): avoid deadlockMichael Stahl2013-05-291-5/+12
| | | | | | | | | | Tor reports that NeonLockStore::stopTicker() m_pTickerThread->join() can deadlock with TickerThread running NeonLockStore::refreshLocks(). This can be avoided by copying m_pTickerThread to the stack, and releasing the m_aMutex before calling join(). Change-Id: I387f83a530c5b893f79fa677b1092e0902c8af65
* Resolves@ #i121926# fix malformed PROPFIND/PROPPATCH request bodyAriel Constenla-Haile2013-05-272-46/+59
| | | | | | | | | | (cherry picked from commit 3c83ceae5e4ff5afe20ea76aeaaae6303cdaec2d) Conflicts: ucb/source/ucp/webdav/SerfPropFindReqProcImpl.cxx ucb/source/ucp/webdav/SerfPropPatchReqProcImpl.cxx Change-Id: I13dab5fb80235e2ab968a1492c05bf579ba08d40
* Header clean-upAriel Constenla-Haile2013-05-2742-95/+95
| | | | | | (cherry picked from commit 9e6159be30751d0ff3af6086de0114cb769873ee) Change-Id: I1bd046e1aca89d3dd35780338737ca4a6f207bca
* Resolves; #i121201# Handle servers not supporting HEAD requestsAriel Constenla-Haile2013-05-273-5/+200
| | | | | | (cherry picked from commit d7085ea6fe26d2fc2ba384da04e454e78887f1f1) Change-Id: I4b3d50906468b998a1f4964d0ad1af3d31725332
* Resolves: #i121922# Fix wrong conditionAriel Constenla-Haile2013-05-271-1/+1
| | | | | | (cherry picked from commit 19c47c4496af7db6c8e41cc218d6c8c2fe69db0e) Change-Id: Ic3febe262cb6723a17e3ea9078137479211fbe59
* Let package_ucp::ContentProvider::createPackage throw exceptions on failureStephan Bergmann2013-05-273-62/+24
| | | | | | | | | | | | | | | | | | | | ...instead of returning a null XHierarchicalNameAccess. Otherwise, UCB's globalTransfer from a vnd.sun.star.package URL that denotes a file that is not a zip file to a file URL folder (i.e., to extract the zip content) silently succeeds but just creates an empty file in the target folder. That, in turn, causes "unopkg add foo.oxt", where foo.oxt is a file that is not a zip file, to silently succeed and add an "empty" extension. This change is somewhat bold in that it changes createPackage from "can return empty reference" to "never returns empty reference, but can throw RuntimeException." Especially, it considers "empty name" as a (silent) violation of its contract with its caller now. I hope this does not affect any legitimate scenarios---at least, it does not break a "make check" here. (In turn, the two package_ucp::Content::getPackage overloads change to never return a null reference, either. And I changed the parameters of createPackage, seeing that all call-sites pass in some PackageUri's getPackage()/getParam() pair.) Change-Id: I0eab5f8059dfedefc7030da38da528ba21ea8d79
* Revert "Rename Boost libraries when built internally to match conventions"Fridrich Štrba2013-05-241-1/+1
| | | | This reverts commit 3aeecc525c76797801e9e2b24c2ebff6ac81adac.
* Rename Boost libraries when built internally to match conventionsTor Lillqvist2013-05-241-1/+1
| | | | | | | | | | | | | The standard Boost convention is for them to be called libboost_date_time and libboost_system (with apropriate suffix then depending on type). Did not touch the libboostthread library we build for Windows. Add the ax_boost_thread.m4 file for completeness and possible use. Document where the ax_boost*.m4 files come from. Change-Id: Ib49bee71398d62c9760a1f8fd5c46be9f3400430
* Related rhbz#961460: Fix regression around OUString::compareTo usageStephan Bergmann2013-05-231-1/+1
| | | | | | | | ...originally introduced with 8da928423add3fdb94baee2a3f3fa053390f828e "Remove RTL_CONSTASCII_(U)STRINGPARAM in ucb(ucp)," leading to "IsFolder" not being properly set in the WebDAV UCP, leading to failure when saving documents. Change-Id: Id2cc98582c9feffaa501a68069cd606fb420fd29
* Fold regexpmap.tpt inline template definitions into regexpmap.hxxStephan Bergmann2013-05-233-591/+488
| | | | Change-Id: I443367fc355a8fdea3156f85dde65cf43795f1bc
* Use the new type-checking Reference constructor to reduce code noiseNoel Grandin2013-05-224-22/+10
| | | | | | | | | | Also create a Clang compiler plugin to detect such cases. Change-Id: I61ad1a1d6b1c017eeb51f226d2dde0e9bb7f1752 Reviewed-on: https://gerrit.libreoffice.org/4001 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* fix for linkingNoel Grandin2013-05-211-0/+1
| | | | | | | caused by my commit 863d38fbfa4fb4861e476828c46410602100919e "move DBG_UNHANDLED_EXCEPTION out of line" Change-Id: Idfd84d987ba9151ba476ce0516a9e5fbdb2003ec
* Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks2013-04-3018-298/+60
|
* Java cleanup, access static methods using correct syntaxNoel Grandin2013-04-261-3/+3
| | | | Change-Id: I8443aef43d82de33ac7cb47d40cc5b544f7c9c87
* extend license filtering, and add fallback-checks.Michael Meeks2013-04-2429-4/+29
| | | | Change-Id: Ia1ec3564326cf898d756c231a64a54db8698bf20
* gbuild: drop empty use_packages callsDavid Tardon2013-04-242-6/+0
| | | | | | | Change-Id: I8e9f70eb5d929c98b4379416c2259a74e31d587f Reviewed-on: https://gerrit.libreoffice.org/3503 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
* gbuild: drop uses of removed packagesDavid Tardon2013-04-242-2/+0
| | | | | | | Change-Id: I400fad08c0ae7b6b34bad63693f54856867e4dac Reviewed-on: https://gerrit.libreoffice.org/3502 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
* Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks2013-04-2216-349/+77
|
* fdo#62096 - Changed a few compareTo's to '=='Sameer Deshmukh2013-04-221-1/+1
| | | | | | | | Change-Id: I0a0ba87ec517e5dd776ab45b232dd7f227451466 Reviewed-on: https://gerrit.libreoffice.org/3523 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
* use GLIB_CHECK_VERSION instead of GLIB_VERSION_X_XXIvan Timofeev2013-04-191-1/+1
| | | | | | Michael Meeks pointed out that the latter can cause problems. Change-Id: I68e7f8c6dcfae52305738b2a8cdee72e9c2c7f93
* Java cleanup, remove the rest of the unnecessary castsNoel Grandin2013-04-193-9/+8
| | | | | | | Change-Id: Ia61d250f6b3711abc29569c5ece38a6f87e38daa Reviewed-on: https://gerrit.libreoffice.org/3432 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
* date/time IDL datatypes incompatible changeLionel Elie Mamane2013-04-185-16/+18
| | | | | | | | | | - nanosecond precision - signed (allowed negative) year Also: assorted improvements / bugfixes in date/time handling code. Some factorisation of copy/pasted code. Change-Id: I761a1b0b8731c82f19a0c37acbcf43d3c06d6cd6
* WaE: g_type_init has been deprecated since GLib 2.36Ivan Timofeev2013-04-181-2/+2
| | | | | | | Change-Id: Ied9b2c2424d780d589cb1b07df0ec38107d49829 Reviewed-on: https://gerrit.libreoffice.org/3434 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* remove needless forward rtl::OUString declarationsLuboš Luňák2013-04-071-3/+0
| | | | Change-Id: I97d91a758dd82d64768d75c1d2ddd279de5f6034
* mass removal of rtl:: prefixes for O(U)String*Luboš Luňák2013-04-07252-4384/+4357
| | | | | | | | Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk have kept them, in order not to break external API (the automatic using declaration is LO-internal). Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
* Add comment the RTL_CONSTASCII_STRINGPARAM should be kept in regexp.cxxChr. Rossmanith2013-04-061-0/+3
| | | | Change-Id: I3cd2129d98c3d936d8ec31f89554b37f12427c1c
* drop prefix from ::cssThomas Arnhold2013-04-021-2/+2
| | | | | | as css is already ::com::sun::star Change-Id: I86b43843e4b74f990b6e05dee37184a002072d12
* remove macros in ucbThomas Arnhold2013-04-014-215/+189
| | | | Change-Id: I9921d79df1eeeb06c0163c1e61e0c845308c6ff9
* remove boilerplate commentsThomas Arnhold2013-04-015-10/+2
| | | | Change-Id: I44a476a9843816f70a7a4d84b8c35edeecd5daaf
* Remove RTL_CONSTASCII_(U)STRINGPARAM in ucbChr. Rossmanith2013-03-284-36/+22
| | | | | | and use append() instead of appendAscii() Change-Id: I7c9dd0e03e24a39240a82fc245b4722d4c424842
* clear -Werror=write-strings in NeonUri.cxxChr. Rossmanith2013-03-271-3/+3
| | | | Change-Id: I7a67c1858b2954ca0522320b9008d70ed1afd64c
* Remove RTL_CONSTASCII_STRINGPARAM in ucbChr. Rossmanith2013-03-273-111/+58
| | | | Change-Id: Ib450c1463add267ad64707c7a2d71e7f6a9c0849
* -Wunused-macrosStephan Bergmann2013-03-272-5/+0
| | | | Change-Id: Ifaa1637122d6f9cae1e29b77ac36ca5d1f220aed
* remove external include guardsThomas Arnhold2013-03-251-8/+0
| | | | Change-Id: If5758e02baa8e019923355b6c97043b306223fdd
* Bin ASCII art and pointless commentsTor Lillqvist2013-03-2610-226/+6
| | | | Change-Id: I9c510a0edb2a04d1378d488cc724e8f9982b5ba3
* WaE: unused function 'matchIgnoreAsciiCase'Tor Lillqvist2013-03-261-15/+0
| | | | Change-Id: I5a270b7375807d1eaad9e22acea4457a0ceb5c54
* Remove RTL_CONSTASCII_STRINGPARAM in NeonUri.cxxChr. Rossmanith2013-03-251-4/+2
| | | | | | | Change-Id: Ibfce9af9bec2e1bac435514ad6d3d27eac5f1a17 Reviewed-on: https://gerrit.libreoffice.org/2975 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
* Introduce HAVE_GCC_PRAGMA_DIAGNOSTIC_{MODIFY,SCOPE}Stephan Bergmann2013-03-251-7/+2
| | | | | | | | | | | | | ...replacing hard-coded GCC version checks. Those checks that guard #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" appear relevant only for GCC itself, not Clang (which used to fail the old guards because it typically announces itself with a rather low __GNUC__/__GNUC_MINOR__ version), see 6e67c03dc0225fc66343546b14e902b9d238b1a3 "Enable -Wnon-virtual-dtor for GCC 4.6" Change-Id: I6bfa4d5caa6192e7a203ce829682bf6bb8d61a1b
* Does not compileStephan Bergmann2013-03-241-7/+7
| | | | Change-Id: If7d24a6378a6645baf9d0c40e3c3cf0ae7d4f317
* Remove RTL_CONSTASCII_(U)STRINGPARAM in ucb(ucp)Chr. Rossmanith2013-03-2412-80/+54
| | | | Change-Id: Iae4ea99e6eff6de8db3d40a6b86e5fd28ff857d0
* Remove uses of rtl::OUString::compareToAscii(asciiStr, maxLength)Thomas Arnhold2013-03-201-13/+7
| | | | | | Now all should be gone. Change-Id: Iaaaebfbb85535d95eab6a2043e7d5e2e845d9782
* Remove uses of rtl::OUString::compareToAscii(asciiStr, maxLength)Stephan Bergmann2013-03-203-19/+9
| | | | | | | ...which is a confusing overload with unexpectedly different semantics from the one-parameter form. In preparation of marking it as deprecated. Change-Id: I4f176995546ae583fc570d770647ffc315eecc75
* simplify OUString assignmentsChr. Rossmanith2013-03-201-2/+2
| | | | | | | Change-Id: Ieffd80aa84c9a041785bb81b3a904a32d00cb2bb Reviewed-on: https://gerrit.libreoffice.org/2863 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com>
* removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings declarationsThomas Arnhold2013-03-191-1/+1
| | | | | | | | | s/(OUString\s+[a-zA-Z_][A-Za-z0-9_]*\s*)\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/$1\($2\)/gms Change-Id: Iad20f242c80c4bdc69df17e2d7a69d58ea53654b Reviewed-on: https://gerrit.libreoffice.org/2835 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
* coverity#982271 Copy-paste errorJulien Nabet2013-03-191-1/+1
| | | | | | | Change-Id: I42800a846ba0cb935f97f8e99f774f58f3b525f8 Reviewed-on: https://gerrit.libreoffice.org/2802 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com>