Commit Graph

37 Commits

Author SHA1 Message Date
Caolán McNamara
567f511924 V801: Decreased performance
Change-Id: I97c7977fdfea57b5d1c45ce0c5902b74cc719db9
2015-03-06 17:08:55 +00:00
Stephan Bergmann
0c1b8516cb forms: Use appropriate OUString functions on string constants
Change-Id: I196e847e2f63d1bac6ed0f520cba67508aec1a5d
2014-12-15 10:12:09 +01:00
Caolán McNamara
4a67abb3b2 coverity#706547 Uncaught exception
Change-Id: Ib619e1ab3f091c04ec27a249b733e54ce469cf82
2014-06-24 14:28:27 +01:00
Noel Grandin
3e82897353 improve the inlinesimplememberfunctions clang plugin
Change-Id: I6d5a952901648e01904ef5c37f953c517304d31e
2014-06-17 10:55:17 +02:00
Peter Senna Tschudin
3b24dcc8a8 Remove unnecessary semicolons
A simplified version of the semantic match that finds this problem is
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@r1@
statement S;
position p,p1;
@@
S@p1;@p

@script:python r2@
p << r1.p;
p1 << r1.p1;
@@
if p[0].line != p1[0].line_end:
    cocci.include_match(False)
@@
position r1.p;
@@
-;@p
// </smpl>

Change-Id: Ib9708d37fbb4c6060f88d5dae3814a2d37b2091e
Reviewed-on: https://gerrit.libreoffice.org/9493
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-05-27 01:19:00 -05:00
Noel Grandin
4f9b21248f simplify ternary conditions "xxx ? yyy : false"
Look for code like:
   xxx ? yyy : false;
Which can be simplified to:
   xxx && yyy

Change-Id: Ia33c0e452aa28af3f0658a5382895aaad0246b4d
2014-05-05 12:47:48 +02:00
Alexander Wilms
bed18b128f Remove visual noise from forms
Conflicts:
	forms/source/component/DatabaseForm.cxx

Change-Id: I4005fe65e89794bd92191c37221c252a3e964917
Reviewed-on: https://gerrit.libreoffice.org/8262
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-26 14:54:56 -06:00
Stephan Bergmann
5e21a413c7 cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26 18:22:20 +01:00
Julien Nabet
f1a73892b3 Typo: apropriate -> appropriate
Change-Id: I05e23039dc3ae0b6595c87fe550f4228ad93d5d6
2014-02-25 22:04:17 +01:00
Stephan Bergmann
6d993bc5b4 bool improvements
Change-Id: I78099f87510355a43ba9b01ca9d545d44ce11a50
2014-01-28 20:26:28 +01:00
Noel Grandin
ef90021abe convert OUString !compareToAscii to equalsAscii
Convert code like
   if( ! aStr.compareToAscii("XXX") )
to
   if( aStr.equalsAscii("XXX") )
which is both clearer and faster.

Change-Id: I267511bccab52f5225b291acbfa4e388b5a5302b
2013-11-11 12:58:12 +02:00
Luboš Luňák
64b993e046 finish deprecation of O(U)String::valueOf()
Compiler plugin to replace with matching number(), boolean() or OUString ctor,
ran it, few manual tweaks, mark as really deprecated.

Change-Id: I4a79bdbcf4c460d21e73b635d2bd3725c22876b2
2013-08-21 15:10:35 +02:00
Luboš Luňák
1946794ae0 mass removal of rtl:: prefixes for O(U)String*
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
2013-04-07 14:23:11 +02:00
Thomas Arnhold
39d45390f4 removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings declarations
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>
2013-03-19 10:48:30 +00:00
Thomas Arnhold
f5ca04caca Related to fdo#60724: correct spelling
Using the autocorrect list of LibreOffice
extras/source/autotext/lang/en-US/acor/DocumentList.xml

Change-Id: I8b93969bc0742c2e95b8b7db3c4c37691e8d3657
Script: http://pastebin.ca/2327716
2013-03-03 17:14:16 +01:00
Thomas Arnhold
4f4e4e40f5 loplugin: improve indentation
Change-Id: Idb847766d93dc222d6c55889616da21eeac212ee
2013-02-25 17:59:40 +01:00
Jean-Noël Rouvignac
97eb8a6e0e Removed several useless macros: A2OU, A2S, C2U, C2S, OUSTR, OUSTRING
Change-Id: Ie859cb2dfdc7103c379fce56be88eef8fe390afd
Reviewed-on: https://gerrit.libreoffice.org/1924
Tested-by: Luboš Luňák <l.lunak@suse.cz>
Reviewed-by: Luboš Luňák <l.lunak@suse.cz>
2013-01-30 12:54:40 +00:00
Michael Meeks
0a063f3a36 re-base on ALv2 code. Includes:
Patch contributed by Christian Lippka
    impress212: #i113063# patch: dubios self assign in svx/source/dialog/framelink.cxx
    http://svn.apache.org/viewvc?view=revision&revision=1167619

    Patches contributed by Mathias Bauer
    gnumake4 work variously
    http://svn.apache.org/viewvc?view=revision&revision=1394707
    http://svn.apache.org/viewvc?view=revision&revision=1394326
    cws mba34issues01: #i117712#: fix several resource errors introduced by
    IAccessible2 implementation
    http://svn.apache.org/viewvc?view=revision&revision=1172343
    cws mba34issues01: #i117719#: use correct resource ID
    http://svn.apache.org/viewvc?view=revision&revision=1172351

    Patch contributed by Andre Fischer
    Do not add targets for junit tests when junit is disabled.
    http://svn.apache.org/viewvc?view=revision&revision=1241508

    Patches contributed by Armin Le-Grand
    #118804# corrected GraphicExporter behaviour on shortcut when pixel graphic is requested
    http://svn.apache.org/viewvc?view=revision&revision=1240195
    fix for #118525#: Using primitives for chart sub-geometry visualisation
    http://svn.apache.org/viewvc?view=revision&revision=1226879
    #118485# - Styles for OLEs are not saved.
    http://svn.apache.org/viewvc?view=revision&revision=1182166
    #118524: apply patch, followup fixes to 118485
    http://svn.apache.org/viewvc?view=revision&revision=1186077 13f79535-47bb-0310-9956-ffa450edef68

    Patch contributed by Regina Henschel
    linecap: Reintegrating finished LineCap feature
    http://svn.apache.org/viewvc?view=revision&revision=1232507

    Patch contributed by Wang Lei (leiw)
    #i118760# split the first table cell vertically, then undo&redo,
    the Presentation app will crash
    http://svn.apache.org/viewvc?view=revision&revision=1301361

cleanup globlmn hacks, undo dependent fixmes.
2012-11-27 12:55:10 +00:00
Luboš Luňák
f7a24eff2d mark lcl_ functions static or rename them if they are not local at all
http://lists.freedesktop.org/archives/libreoffice/2012-October/039639.html

Change-Id: I231f0b367bf0b513c6c1ce4c4cfdb7c3dc8660d5
2012-10-12 13:34:47 +02:00
Caolán McNamara
bccf34c19a ditch String::CreateFromAscii
Change-Id: I2b482bd323ac510629c5ee31868010b7cd6ce691
2012-07-03 21:24:35 +01:00
Gustavo Buzzatti Pacheco
6cfae09e5d Fix for fdo43460 Part XVIII getLength() to isEmpty()
Part XVIII
module
form
2011-12-30 11:36:01 +01:00
Michael T. Whiteley
dcfd4beb21 childs -> children 2011-12-08 11:32:41 +02:00
Norbert Thiebaud
0c4aa66913 remove include of pch header from forms 2011-11-27 13:09:48 -06:00
Julien Nabet
da41ba97d3 Some cppcheck cleaning 2011-08-09 00:17:54 +02:00
Caolán McNamara
d161cc8870 prefix prefix variant 2010-12-19 16:28:33 +00:00
Sebastian Spaeth
ead7290449 Add vim/emacs modelines to all source files
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-13 10:57:23 +02:00
Jens-Heiner Rechtien
36de66bdf0 changefileheader2: #i109125#: change source file copyright notice from Sun Microsystems to Oracle; remove CVS style keywords (RCSfile, Revision) 2010-02-12 15:01:35 +01:00
Kurt Zenker
7cba21e094 INTEGRATION: CWS xformsdocmodify (1.9.14); FILE MERGED
2008/06/02 21:44:12 fs 1.9.14.1: #i90243# implement a ExternalData property which controls whether changes in the model data should mark the embedding document as modified
2008-06-25 13:29:20 +00:00
Rüdiger Timm
2c0e5981e6 INTEGRATION: CWS xmlfix2 (1.7.16); FILE MERGED
2008/05/15 17:04:25 mst 1.7.16.2: RESYNC: (1.7-1.9); FILE MERGED
2008/03/31 14:24:28 mst 1.7.16.1: #i81678#: interface change: XXPathAPI
- forms/source/xforms/{computedexpression.cxx,pathexpression.cxx,binding.cxx}:
  + adapt to changes in css.xml.xpath.XXPathAPI
2008-06-06 10:40:49 +00:00
Kurt Zenker
7253ac1107 INTEGRATION: CWS dba30b (1.7.12); FILE MERGED
2008/04/15 21:53:23 fs 1.7.12.2: RESYNC: (1.7-1.8); FILE MERGED
2008/02/26 08:29:01 fs 1.7.12.1: remove unused code
Issue number:  #i86305#
Submitted by:  cmc@openoffice.org
Reviewed by:   frank.schoenheit@sun.com
2008-05-05 14:24:57 +00:00
Rüdiger Timm
6c32cdd3e1 INTEGRATION: CWS changefileheader (1.7.18); FILE MERGED
2008/03/31 13:11:44 rt 1.7.18.1: #i87441# Change license header to LPGL v3.
2008-04-11 07:53:46 +00:00
Rüdiger Timm
b958b17ed4 INTEGRATION: CWS oj30 (1.6.114); FILE MERGED
2008/01/11 07:27:40 oj 1.6.114.1: #i85085# add std
2008-01-29 16:07:13 +00:00
Oliver Bolte
53e0ed149c INTEGRATION: CWS pchfix02 (1.5.26); FILE MERGED
2006/09/01 17:27:45 kaib 1.5.26.1: #i68856# Added header markers and pch files
2006-09-16 23:03:06 +00:00
Jens-Heiner Rechtien
e72ee4215c INTEGRATION: CWS warnings01 (1.4.68); FILE MERGED
2006/03/14 15:20:34 fs 1.4.68.1: #i57457# warning-free code
2006-06-19 12:03:11 +00:00
Rüdiger Timm
3cb460bc10 INTEGRATION: CWS ooo19126 (1.3.56); FILE MERGED
2005/09/05 13:50:54 rt 1.3.56.1: #i54170# Change license header: remove SISSL
2005-09-08 22:13:59 +00:00
Vladimir Glazounov
b2a54aa2e4 INTEGRATION: CWS eforms4 (1.2.6); FILE MERGED
2005/03/16 10:43:51 dvo 1.2.6.14: #i36288# remove all cached node references on Binding::update()
Issue number:
Submitted by:
Reviewed by:
2005/03/15 14:19:43 dvo 1.2.6.13: #i36608# preserve 'modified' status across xforms-generic events
         (also remove unused code)
Issue number:
Submitted by:
Reviewed by:
2005/01/25 18:24:36 mbu 1.2.6.12: #i41255
2005/01/11 17:38:49 dvo 1.2.6.11: fix compilation; also remove superflous qualifications of Reference
(these were necessary to work around a using declaration in xformsevent.hxx)
2004/12/29 10:52:04 fs 1.2.6.10: #i39451# remove the hack of directly setting properties at our modify listeners, instead, have own ReadOnly and Relevant properties whose changes are notified to interested parties
2004/12/28 09:39:02 fs 1.2.6.9: #i39451# derive from another PropertySet helper class, which also allows listener handling
2004/12/27 15:24:17 fs 1.2.6.8: #i10000#
2004/12/21 14:28:20 mbu 1.2.6.7: now reverted from what is considered evil practive...
2004/12/21 13:51:15 mbu 1.2.6.6: xforms events introduced
2004/12/20 13:24:26 dvo 1.2.6.5: prevent crash when distributing MIPs when no node can be found
Issue number:
Submitted by:
Reviewed by:
2004/12/17 12:58:39 dvo 1.2.6.4: #i38991# remove useless bindings (still usefull if it has typename)
Issue number:
Submitted by:
Reviewed by:
2004/12/15 12:00:31 mbu 1.2.6.3: distributeMIP introduced
2004/12/15 11:03:16 dvo 1.2.6.2: #i35397# use model namespaces (when possible)
Issue number:
Submitted by:
Reviewed by:
2004/12/08 16:19:46 fs 1.2.6.1: during #i36359# #i36303#: +InvalidBindingStateException
2005-03-23 10:34:34 +00:00
Oliver Bolte
81e0e296ea INTEGRATION: CWS eforms2 (1.1.2); FILE ADDED
2004/11/03 15:13:19 dvo 1.1.2.28: #i36577# always throw binding exception when no model is present
Issue number:
Submitted by:
Reviewed by:
2004/09/22 18:42:34 dvo 1.1.2.27: set Model in evaluation context
Issue number:
Submitted by:
Reviewed by:
2004/08/12 13:58:33 dvo 1.1.2.26: #i31958# fix :getBindingForNode
Issue number:
Submitted by:
Reviewed by:
2004/08/09 17:56:58 dvo 1.1.2.25: #i31958# continue binding
Issue number:
Submitted by:
Reviewed by:
2004/08/09 17:33:48 dvo 1.1.2.24: #i31958# stop listening when mdoel is reset
2004/08/06 16:18:14 dvo 1.1.2.23: #i31958# continue XForms implementation
Issue number:
Submitted by:
Reviewed by:
2004/08/06 14:00:49 fs 1.1.2.22: #i31958# keep our PropertySetInfo alive
2004/08/03 15:41:47 fs 1.1.2.21: #i10000#
2004/08/02 13:49:43 dvo 1.1.2.20: #i31958# continue XForms implementation
Issue number:
Submitted by:
Reviewed by:
2004/07/28 06:21:45 fs 1.1.2.19: #i10000#
2004/07/20 15:54:21 dvo 1.1.2.18: #114856# continue XFormsUIHelper1
Issue number:
Submitted by:
Reviewed by:
2004/07/13 12:35:54 fs 1.1.2.17: #i10000# correct visibility of aIter
2004/06/23 12:31:12 dvo 1.1.2.16: #114856# data type validation + resources for error messages
Issue number:
Submitted by:
Reviewed by:
2004/06/09 08:24:45 dvo 1.1.2.15: #114856# Solaris compiler problems
(typedef names in throw clauses; include-before-forward-declaration)
Issue number:
Submitted by:
Reviewed by:
2004/06/04 13:37:09 dvo 1.1.2.14: #114856# solve compilation problems uncovered with gcc
Issue number:
Submitted by:
Reviewed by:
2004/06/04 11:56:20 dvo 1.1.2.13: #114856# fix GCC compilations problems
Issue number:
Submitted by:
Reviewed by:
2004/06/01 09:41:28 dvo 1.1.2.12: #114856# support controls with datatype 'double', lazy authoring, error message for invalid binding expressions
Issue number:
Submitted by:
Reviewed by:
2004/05/26 15:18:26 dvo 1.1.2.11: #114856# continue XForms implementation
Issue number:
Submitted by:
Reviewed by:
2004/04/28 11:24:20 dvo 1.1.2.10: #114856# fix explainInvalid()
Issue number:
Submitted by:
Reviewed by:
2004/04/27 15:42:19 dvo 1.1.2.9: #114856# improve implementation
Issue number:
Submitted by:
Reviewed by:
2004/04/23 10:07:23 dvo 1.1.2.8: #114856# implement XValidator; also defer control updates when setting data on the instance
Issue number:
Submitted by:
Reviewed by:
2004/04/22 12:14:13 dvo 1.1.2.7: #114856# adopt new form::binding namespace
Issue number:
Submitted by:
Reviewed by:
2004/04/22 09:13:34 dvo 1.1.2.6: #114856# improve dynamic binding capability
Issue number:
Submitted by:
Reviewed by:
2004/04/07 13:29:47 dvo 1.1.2.5: #114856# continue implementation
Issue number:
Submitted by:
Reviewed by:
2004/03/18 17:09:34 dvo 1.1.2.4: #114856# continue XForms implementation
2004/02/25 17:57:12 dvo 1.1.2.3: #114856# enable dynamic bindings
2004/01/28 13:39:22 dvo 1.1.2.2: #114856# improve xforms support
2004/01/14 12:58:03 dvo 1.1.2.1: #114856# start XForms core implementation
2004-11-16 09:48:20 +00:00