diff options
| author | Kris De Gussem <kris.degussem@gmail.com> | 2011-12-17 20:43:37 +0000 |
|---|---|---|
| committer | Kris <Kris.De.Gussem@hotmail.com> | 2011-12-17 20:43:37 +0000 |
| commit | c9d06adc5f8252eb3d2a90570d65afd0fd4c891b (patch) | |
| tree | 5467605011156e622a99c369cf05b9ed7bfa16bc /src/extension | |
| parent | Dropped unused SPAttributeWidget (diff) | |
| download | inkscape-c9d06adc5f8252eb3d2a90570d65afd0fd4c891b.tar.gz inkscape-c9d06adc5f8252eb3d2a90570d65afd0fd4c891b.zip | |
some static code analysis stuff (cppcheck warnings)
(bzr r10779)
Diffstat (limited to 'src/extension')
| -rw-r--r-- | src/extension/dxf2svg/blocks.cpp | 5 | ||||
| -rw-r--r-- | src/extension/effect.h | 6 | ||||
| -rw-r--r-- | src/extension/implementation/script.cpp | 2 | ||||
| -rw-r--r-- | src/extension/internal/latex-text-renderer.cpp | 4 |
4 files changed, 4 insertions, 13 deletions
diff --git a/src/extension/dxf2svg/blocks.cpp b/src/extension/dxf2svg/blocks.cpp index 75f348bde..36f2b9e7e 100644 --- a/src/extension/dxf2svg/blocks.cpp +++ b/src/extension/dxf2svg/blocks.cpp @@ -39,13 +39,8 @@ void block::block_info( std::vector< dxfpair > info){ } - - - - blocks::blocks(std::vector< std::vector< dxfpair > > sections){ // Read the main information about the entities section and then put it in the enetites class - int value; char string[10000]; std::vector< dxfpair > single_line; std::vector< std::vector< dxfpair > > ents; diff --git a/src/extension/effect.h b/src/extension/effect.h index 61a826ad4..83b5cc036 100644 --- a/src/extension/effect.h +++ b/src/extension/effect.h @@ -24,11 +24,7 @@ struct SPDocument; namespace Inkscape { -namespace UI { -namespace View { -typedef View View; -}; -}; + namespace Extension { diff --git a/src/extension/implementation/script.cpp b/src/extension/implementation/script.cpp index 08624aff0..0a0282284 100644 --- a/src/extension/implementation/script.cpp +++ b/src/extension/implementation/script.cpp @@ -971,7 +971,7 @@ int Script::execute (const std::list<std::string> &in_command, NULL, // STDIN &stdout_pipe, // STDOUT &stderr_pipe); // STDERR - } catch (Glib::Error e) { + } catch (Glib::Error &e) { printf("Can't Spawn!!! spawn returns: %s\n", e.what().data()); return 0; } diff --git a/src/extension/internal/latex-text-renderer.cpp b/src/extension/internal/latex-text-renderer.cpp index 6244512a4..0134ea895 100644 --- a/src/extension/internal/latex-text-renderer.cpp +++ b/src/extension/internal/latex-text-renderer.cpp @@ -266,7 +266,7 @@ LaTeXTextRenderer::sp_text_render(SPItem *item) SPText *textobj = SP_TEXT (item); SPStyle *style = item->style; - gchar *strtext = sp_te_get_string_multiline(item); + /*gchar *strtext = sp_te_get_string_multiline(item); if (!strtext) { return; } @@ -274,7 +274,7 @@ LaTeXTextRenderer::sp_text_render(SPItem *item) gchar ** splitstr = g_strsplit(strtext, "\n", -1); gchar *str = g_strjoinv("\\\\ ", splitstr); g_free(strtext); - g_strfreev(splitstr); + g_strfreev(splitstr);*/ // get position and alignment // Align vertically on the baseline of the font (retreived from the anchor point) |
