Add license and copyright information to source files #61

Merged
luca-pellegrini merged 2 commits from add_license_to_source_files into master 2023-05-16 21:28:03 +02:00
luca-pellegrini commented 2023-05-06 22:40:35 +02:00 (Migrated from github.com)

Fixes #21

Proposed Changes

  • Add license and copyright information to beginning of source files
Fixes #21 ## Proposed Changes - Add license and copyright information to beginning of source files
gfgit commented 2023-05-07 13:15:24 +02:00 (Migrated from github.com)
src/shifts/shiftgraph/shiftgrapheditor.cpp:20:1: error: stray '\357' in program
 #include "shiftgrapheditor.h"
 ^
src/shifts/shiftgraph/shiftgrapheditor.cpp:20:2: error: stray '\273' in program
 #include "shiftgrapheditor.h"
  ^
src/shifts/shiftgraph/shiftgrapheditor.cpp:20:3: error: stray '\277' in program
 #include "shiftgrapheditor.h"
   ^

There might be some unwanted UTF characters...
It is just showing on one file because compilation stopped but I suspect every file now has this problem.

``` src/shifts/shiftgraph/shiftgrapheditor.cpp:20:1: error: stray '\357' in program #include "shiftgrapheditor.h" ^ src/shifts/shiftgraph/shiftgrapheditor.cpp:20:2: error: stray '\273' in program #include "shiftgrapheditor.h" ^ src/shifts/shiftgraph/shiftgrapheditor.cpp:20:3: error: stray '\277' in program #include "shiftgrapheditor.h" ^ ``` There might be some unwanted UTF characters... It is just showing on one file because compilation stopped but I suspect every file now has this problem.
luca-pellegrini commented 2023-05-07 18:14:36 +02:00 (Migrated from github.com)

I checked that file (src/shifts/shiftgraph/shiftgrapheditor.cpp), and indeed there are three non-printable characters at the beginning of the line, before the #include.

This is the output of the cat command (the -Tv flag means "show TAB characters as ^I" and "show non-printable characters using the ^ and M- notation") :

$ cat -Tv shiftgrapheditor.cpp
M-oM-;M-?#include "shiftgrapheditor.h"

#include <QVBoxLayout>
...

'M-oM-;M-?' are the three non-printable characters.

But I didn't find any of those weird characters in the other source files in that same directory.

I found out that those non-printable characters are present in that same file also on the master branch.

I checked that file (`src/shifts/shiftgraph/shiftgrapheditor.cpp`), and indeed there are three non-printable characters at the beginning of the line, before the `#include`. This is the output of the `cat` command (the `-Tv` flag means "show TAB characters as ^I" and "show non-printable characters using the ^ and M- notation") : ```shell $ cat -Tv shiftgrapheditor.cpp M-oM-;M-?#include "shiftgrapheditor.h" #include <QVBoxLayout> ... ``` 'M-oM-;M-?' are the three non-printable characters. But I didn't find any of those weird characters in the other source files in that same directory. I found out that those non-printable characters are present in that same file also on the `master` branch.
luca-pellegrini commented 2023-05-07 18:54:52 +02:00 (Migrated from github.com)

I removed the three problematic non-printable characters from the file src/shifts/shiftgraph/shiftgrapheditor.cpp, and then tried to compile again. I found two other files that had the same issue: src/printing/helper/view/sceneprintpreviewdlg.cpp and src/viewmanager/viewmanager.cpp.

After removing the unwanted characters from those files, I managed to compile the program successfully.

I removed the three problematic non-printable characters from the file `src/shifts/shiftgraph/shiftgrapheditor.cpp`, and then tried to compile again. I found two other files that had the same issue: `src/printing/helper/view/sceneprintpreviewdlg.cpp` and `src/viewmanager/viewmanager.cpp`. After removing the unwanted characters from those files, I managed to compile the program successfully.
Sign in to join this conversation.
No description provided.