summaryrefslogtreecommitdiff
path: root/l10ntools
AgeCommit message (Collapse)Author
2014-07-10coverity#1224977 integer overflowNorbert Thiebaud
Change-Id: Ic212489319ef06486323877227bc8f43cc9190cc
2014-07-10coverity#1224978 integer overflowNorbert Thiebaud
Change-Id: Ie7dd90e6e395fb84802758e7d90ffac010dcced0
2014-07-01New loplugin:stringconcatStephan Bergmann
Change-Id: Id7c517fb37bc28797c45fc0dde83e866f2aa4aac
2014-06-22fdo#80324 fix path of redline_tmpl.hrcAndras Timar
Change-Id: Ie1684fe456ea6f9cd4b93481aa73f5b51a20ba1b
2014-06-19coverity#1019333 Explicit null dereferencedCaolán McNamara
Change-Id: I3ac21f8613558cb0413f405287cdd394f3facf02
2014-06-16update usage instructions of pocheck toolAndras Timar
Change-Id: Ibc1c5051a601a83a6616e6a22c45b05394c54e88
2014-06-13loplugin:staticcallStephan Bergmann
Change-Id: I6f18ab4dc082e30e51b4c0020dff4ff098275b60
2014-06-11Fix XMLFile::SearchL10NElements signatureStephan Bergmann
Change-Id: I34134f75ac5571a635256d349bf5a2f67ef8ef06
2014-06-09loplugin: inlinesimplememberfunctionsNoel Grandin
Change-Id: I42119f656ca528286fb25d2d36c0af54b7d04a6b
2014-06-01fdo#68849: Add header guards to all include filesJens Carl
Added header guards to files in directories l10ntools/, lotuswordpro/, and rsc/ Change-Id: I9c034d4bb5c92d78378bda4658d43a8b603d5281 Reviewed-on: https://gerrit.libreoffice.org/9581 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-05-27Remove unnecessary semicolonsPeter Senna Tschudin
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-22Fix memory leak in xrmex toolStephan Bergmann
Change-Id: I102566a95b5b34daf60730ffef290913caf28eb2
2014-05-22Fix memory leak in cfgex toolStephan Bergmann
Change-Id: Ic8c410a805fa06777c1a85de646df2dcd5b6506a
2014-05-15Resolves fdo#70681: fixincludeguards.pl: all that's leftThomas Arnhold
Change-Id: I3e51a62710bb46c8255fd228d41d9300c90a1fb5 Reviewed-on: https://gerrit.libreoffice.org/9360 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-05-05simplify ternary conditions "xxx ? yyy : false"Noel Grandin
Look for code like: xxx ? yyy : false; Which can be simplified to: xxx && yyy Change-Id: Ia33c0e452aa28af3f0658a5382895aaad0246b4d
2014-04-28prefer makefile-gmake-modeTakeshi Abe
Change-Id: I9cc9bfbddd3a90e00eee3e674994e5d6207f9034
2014-04-23some more hrc cleanupThomas Arnhold
Change-Id: Ic1a99ef971168093835207dd084e50a4f02b5e5f Reviewed-on: https://gerrit.libreoffice.org/9141 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-04-21Avoid possible memory leaks in case of exceptionsTakeshi Abe
Change-Id: I4b2b439615db0ff4598f405d1e339eebbff7ae91
2014-04-16l10ntools: helpex: don't crash if the file can't be parsed; return errorMichael Stahl
Change-Id: I637f8486b0774b399ed5e250868d756c944e50f6
2014-04-14typo: befor -> beforeThomas Arnhold
2014-04-11Memory released through xmlFreeDoc should be acquired with xmlMallocStephan Bergmann
Change-Id: I70db57257fa8226d9f18b7d970d85cc1769252ad
2014-04-08Remove extra newlineStephan Bergmann
Change-Id: I192542c209a1b937672650d370d3f8e93d0bc9f5
2014-04-08Clean up function declarationsStephan Bergmann
Change-Id: Ie1360857dc4ed3102c709c1ef5b5929e5d5d5d7b
2014-04-04Clean up unreferenced functionsStephan Bergmann
Change-Id: Id2c90088298d389bd1cd8efad9aa26100965d6a2
2014-04-01Explicitly mark overriding destructors as "virtual"Stephan Bergmann
It appears that the C++ standard allows overriding destructors to be marked "override," but at least some MSVC versions complain about it, so at least make sure such destructors are explicitly marked "virtual." Change-Id: I0e1cafa7584fd16ebdce61f569eae2373a71b0a1
2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann
...mostly done with a rewriting Clang plugin, with just some manual tweaking necessary to fix poor macro usage. Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
2014-03-21move remaining padmin dialogs into vclCaolán McNamara
and so padmin is no more Change-Id: I554cefa8b38581daad8a78bafa167448b0a0ef61
2014-03-19coverity#984098 Uninitialized pointer fieldCaolán McNamara
Change-Id: I671f7c98bdcfa828e7252ec13fd1b6b998ff7a87
2014-03-18Find places where OUString and OString are passed by value.Noel Grandin
It's not very efficient, because we generally end up copying it twice - once into the parameter and again into the destination OUString. So I create a clang plugin that finds such places and generates a warning so that we can convert them to pass-by-reference. Change-Id: I5341a6ea9e3190f4b4c05c42c85595e3dcd83361
2014-02-26fix commentsCaolán McNamara
Change-Id: Iee6557755e4976e023d1c04bde24e3aa1d0fd062 Reviewed-on: https://gerrit.libreoffice.org/8369 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-26Remove visual noise from l10ntoolsAlexander Wilms
Change-Id: Ia10056ae9e1b9adfe74f299afac5c3c84fa8cea7 Reviewed-on: https://gerrit.libreoffice.org/8278 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-21cid#707946 Uninitialized pointer fieldNoel Grandin
this field was actually only used to swap values between other values, so convert it to local variables Change-Id: I274e8978651f905c0bd2391ac4baaf5c23388425
2014-02-20cid#1038312 Dereference before null checkNoel Grandin
Change-Id: I280d9382a47c0a934f5b1cd79eead59f9a50e52e
2014-02-18ulfex: remove unneeded bULF, it is always trueZolnai Tamás
Change-Id: I1401fddfdd42eba96253f4dd19cf60bba8de6802
2014-02-18Drop unnecessary #includeTakeshi Abe
Change-Id: Ib9ab63cdf21f54b1611de37c5538a300a1b39ba6
2014-02-17l10ntools: sal_Bool -> boolStephan Bergmann
Change-Id: Ifffdc0942b83b5761cbbbfc5db7d241be60815cb
2014-01-30moved impress remote clients to a separate repositoryNorbert Thiebaud
Change-Id: I654e3af31a6915f08ff808b351d304da773ad267 see: git://gerrit.libreoffice.org/impress_remote
2014-01-29coverity#1158098 Explicit null dereferencedCaolán McNamara
Change-Id: Id21a206df7d9c221fabf8503d959bfe314217214
2014-01-28bool improvementsStephan Bergmann
Change-Id: Ifc3b966ce84dfb1f3498d24a09b4f8614abba15c
2014-01-27fdo#74119 fix unlocalized redline menuAndras Timar
Change-Id: Ia4836a69ddd8bebe8cc21cea67be96b029388cb1
2014-01-10sal_Bool -> boolStephan Bergmann
Change-Id: Iacfeab2cc6fb8bb85b964a995c5df16d03ed2e53
2014-01-06Transex3: modify src list localization/merge partZolnai Tamás
Avoid using numbers to identify the list items because using numbers can lead to mixed translations. Use the corresponding string instead. Remove a hacky solution for mixed translations. See: 95ea6cb21a7d7f4f163e642ba4b1e165a427a0d1 Change-Id: I6f1d48bf71fe2146f04f53c6b474dd7c0ce98678
2013-12-27Transex3: modify list localization/export partZolnai Tamás
Avoid using numbers to identify the list items because using numbers can lead to mixed translations. Use the corresponding string instead. Change-Id: I963efbf0b4d6b17f77c51cbda0af57efa66cf8cf
2013-12-27Transex3: Simplify members for listsZolnai Tamás
No need for hashmaps (ExportListEntry) because only one list is stored (en-US). One list member is enough instead of one for all types. Change-Id: I952d6616e436c5aa7656854f83d442434ffcbd54
2013-12-27Transex3: NO_LOCALIZE_EXPORTZolnai Tamás
In the past, NO_LOCALIZE_EXPORT macro must be used to skip uneeded parsing of src files which has no localizable content. It is unsued by now and it is more effective to handle this files on gmake level: gb_SrsTarget_add_nonlocalizable_files gb_SrsTarget_add_nonlocalizable_templates Plus remove some empty src file. Change-Id: I8fc9b2db0b5fd7a3379d3c5be970c4fc691f4c53
2013-12-27Transex3: some string optimizationZolnai Tamás
Change-Id: I66dab1cce489c670991d2c74ffc171638dfca3d7
2013-12-27Transex3: no need to check whether a lang occurs twiceZolnai Tamás
It was an old concept that besides the en-US entry other language entries were also added and in this case may happened that one lang occured twice. Change-Id: Ifac7089309ecf4a59b128c0fea5e8b757ca2c8a8
2013-12-27Transex3: remove unused sLastTextType memberZolnai Tamás
Change-Id: I82196decf0419adabc849bd82141e8702f510c1c
2013-12-27Transex3: remove obsolete textrefidZolnai Tamás
Change-Id: Ic34efbd2090a11aa6fa88d67eda7ab31b1bddfcb
2013-12-27Transex3: sHelpId is assigned but never usedZolnai Tamás
Change-Id: I01bc171f5ad399644185e5e6d0398e89d9305ee7