{"action":"created","issue":{"url":"https://api.github.com/repos/TommyKaneko/Sketchup-API-C-Wrapper/issues/41","repository_url":"https://api.github.com/repos/TommyKaneko/Sketchup-API-C-Wrapper","labels_url":"https://api.github.com/repos/TommyKaneko/Sketchup-API-C-Wrapper/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/TommyKaneko/Sketchup-API-C-Wrapper/issues/41/comments","events_url":"https://api.github.com/repos/TommyKaneko/Sketchup-API-C-Wrapper/issues/41/events","html_url":"https://github.com/TommyKaneko/Sketchup-API-C-Wrapper/issues/41","id":299753409,"number":41,"title":"Warnings: Returning address of local variable","user":{"login":"thomthom","id":192418,"avatar_url":"https://avatars0.githubusercontent.com/u/192418?v=4","gravatar_id":"","url":"https://api.github.com/users/thomthom","html_url":"https://github.com/thomthom","followers_url":"https://api.github.com/users/thomthom/followers","following_url":"https://api.github.com/users/thomthom/following{/other_user}","gists_url":"https://api.github.com/users/thomthom/gists{/gist_id}","starred_url":"https://api.github.com/users/thomthom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomthom/subscriptions","organizations_url":"https://api.github.com/users/thomthom/orgs","repos_url":"https://api.github.com/users/thomthom/repos","events_url":"https://api.github.com/users/thomthom/events{/privacy}","received_events_url":"https://api.github.com/users/thomthom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-23T15:42:22Z","updated_at":"2018-02-23T15:46:18Z","closed_at":null,"author_association":"NONE","body":"This is producing errors - and will not work. Either it should return a const ref of the internal member, or a Ref copy.\r\n\r\n```cpp\r\nSUFaceRef Face::ref() const {  return SUFaceFromEntity(m_entity); }\r\n\r\n\r\nFace::operator SUFaceRef() const {  return this->ref();}\r\n\r\n\r\nFace::operator SUFaceRef*() {\r\n  // TODO: test if the solution below works.\r\n  SUFaceRef face = this->ref();\r\n  return &face;\r\n}\r\n```\r\n\r\n![image](https://user-images.githubusercontent.com/192418/36602376-29d5d0b6-18b8-11e8-98bb-96877defc78b.png)\r\n"},"comment":{"url":"https://api.github.com/repos/TommyKaneko/Sketchup-API-C-Wrapper/issues/comments/368046540","html_url":"https://github.com/TommyKaneko/Sketchup-API-C-Wrapper/issues/41#issuecomment-368046540","issue_url":"https://api.github.com/repos/TommyKaneko/Sketchup-API-C-Wrapper/issues/41","id":368046540,"user":{"login":"thomthom","id":192418,"avatar_url":"https://avatars0.githubusercontent.com/u/192418?v=4","gravatar_id":"","url":"https://api.github.com/users/thomthom","html_url":"https://github.com/thomthom","followers_url":"https://api.github.com/users/thomthom/followers","following_url":"https://api.github.com/users/thomthom/following{/other_user}","gists_url":"https://api.github.com/users/thomthom/gists{/gist_id}","starred_url":"https://api.github.com/users/thomthom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomthom/subscriptions","organizations_url":"https://api.github.com/users/thomthom/orgs","repos_url":"https://api.github.com/users/thomthom/repos","events_url":"https://api.github.com/users/thomthom/events{/privacy}","received_events_url":"https://api.github.com/users/thomthom/received_events","type":"User","site_admin":false},"created_at":"2018-02-23T15:46:18Z","updated_at":"2018-02-23T15:46:18Z","author_association":"NONE","body":"Ref objects are so light-weight that I don't see any problem passing by value."}}
{"actor":{"display_login":"thomthom"}}